Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.27 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.27 KB

PHP I: Comparison

Introduction

The Comparable interface defines the getComparisonTo method, which determines the sort order of instances of the implementing type.

The Equalable interface defines the isEqualTo & isNotEqualTo methods, which determines the equality of instances of the implementing type.

Motivation

PHP doesn't have built-in interfaces for object comparison. Inspired by:

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributors

@antonkomarev
Anton Komarev

PHP I: Comparison contributors list

License