1 | <?php |
||
16 | class PropertyAccessDisplay implements Display |
||
17 | { |
||
18 | /** |
||
19 | * @var Property[] |
||
20 | */ |
||
21 | private $data = []; |
||
22 | |||
23 | /** |
||
24 | * @var object|array |
||
25 | */ |
||
26 | private $object; |
||
27 | |||
28 | /** |
||
29 | * @var PropertyAccessorInterface |
||
30 | */ |
||
31 | private $accessor; |
||
32 | |||
33 | /** |
||
34 | * @param object|array $object |
||
35 | */ |
||
36 | public function __construct($object) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function add($path, $label, array $valueFormatters = array()) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function getData() |
||
65 | |||
66 | /** |
||
67 | * @param object|array $object |
||
68 | * @throws InvalidArgumentException |
||
69 | */ |
||
70 | private function validateObject($object) |
||
80 | |||
81 | /** |
||
82 | * @return PropertyAccessorInterface |
||
83 | */ |
||
84 | private function createPropertyAccessor() |
||
91 | } |
||
92 |