| 1 | <?php |
||
| 10 | class PropertyValue implements IdentificationStrategy |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Identity |
||
| 14 | */ |
||
| 15 | private $identity; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var PropertyAccessor |
||
| 19 | */ |
||
| 20 | private $propertyAccessor; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param Identity $identity |
||
| 24 | */ |
||
| 25 | public function __construct(Identity $identity) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param mixed $entity |
||
| 33 | * @return boolean |
||
| 34 | */ |
||
| 35 | public function isIdentified($entity) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param $entity |
||
| 44 | * @return mixed |
||
| 45 | * @throws RuntimeException |
||
| 46 | */ |
||
| 47 | public function getIdentity($entity) |
||
| 57 | } |
||
| 58 |