1 | <?php |
||
15 | class PropertyPathStateAccessor implements StateAccessorInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $propertyPath; |
||
21 | |||
22 | /** |
||
23 | * @var PropertyAccessorInterface |
||
24 | */ |
||
25 | private $propertyAccessor; |
||
26 | |||
27 | /** |
||
28 | * @param string $propertyPath |
||
29 | * @param PropertyAccessorInterface $propertyAccessor |
||
30 | */ |
||
31 | 55 | public function __construct($propertyPath = 'finiteState', PropertyAccessorInterface $propertyAccessor = null) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 15 | public function getState($object) |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 15 | public function setState(&$object, $value) |
|
68 | } |
||
69 |