1 | <?php |
||
10 | final class Identity |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $propertyName; |
||
16 | |||
17 | /** |
||
18 | * @param string $propertyName |
||
19 | * @throws InvalidArgumentException |
||
20 | */ |
||
21 | public function __construct($propertyName) |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | * |
||
37 | * @api |
||
38 | */ |
||
39 | public function getPropertyName() |
||
43 | |||
44 | /** |
||
45 | * @param string $propertyPath |
||
46 | * @return bool |
||
47 | * |
||
48 | * @api |
||
49 | */ |
||
50 | public function isEqual($propertyPath) |
||
54 | } |
||
55 |