smartemailing / types

Missing data types for PHP. Highly extendable.
Other
89 stars 11 forks source link

Add CompareAble API #98

Closed slischka closed 3 years ago

slischka commented 3 years ago

Allow compare two object. Same API as Enum equal.

$email1 = Emailaddress::from('xx@xx.com');
$email2 = Emailaddress::from('xx@xx.com');

assert($email1->equal($email2));