1 | <?php |
||
13 | abstract class Embeddable |
||
14 | { |
||
15 | /** @var string */ |
||
16 | protected $value; |
||
17 | |||
18 | /** |
||
19 | * Compare two embeddables. |
||
20 | * |
||
21 | * The comparison should be done by value. |
||
22 | * |
||
23 | * @access public |
||
24 | * @param Embeddable $object |
||
25 | * @return bool |
||
26 | */ |
||
27 | abstract public function equals(Embeddable $object); |
||
28 | |||
29 | /** |
||
30 | * @access public |
||
31 | * @return string |
||
32 | */ |
||
33 | 99 | public function __toString() |
|
37 | |||
38 | protected function __clone() |
||
41 | } |
||
42 |