for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ivory\Value\Alg;
/**
* Provides an implementation of the {@link IEqualable} interface, comparing objects using the PHP `==` operator.
*/
trait EqualableWithPhpOperators
{
final public function equals($other): bool
return (
$other !== null &&
get_class($this) == get_class($other) &&
$this == $other
);
}