uptodown / equalable
An interface for checking equal objects
Installs: 23 482
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Forks: 0
pkg:composer/uptodown/equalable
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-09-29 02:06:39 UTC
README
An interface for checking equal objects
Installation
To install it with composer:
composer require uptodown/equalable
Simple usage
The object:
use Uptodown\EqualableInterface\Equalable;
class NewObject implements Equalable
{
public function equals($object)
{
return /* equal condition */;
}
}
The usage:
if ($newObject->equals($otherNewObject)) {
// do something
}