1 | <?php |
||
23 | trait AllReadableTrait |
||
24 | { |
||
25 | /** |
||
26 | * @var RawPropertyAccessor |
||
27 | */ |
||
28 | protected $accessor; |
||
29 | |||
30 | /** |
||
31 | * Returns the RawPropertyAccessor for this object, or constructs |
||
32 | * one on the fly if one does not yet exist |
||
33 | * |
||
34 | * @return RawPropertyAccessor |
||
35 | */ |
||
36 | 63 | protected function getPropertyAccessor() |
|
45 | |||
46 | /** |
||
47 | * Gets the value of a property using the RawPropertyAccessor |
||
48 | * |
||
49 | * @param string $property The property to get |
||
50 | * @return mixed The property value |
||
51 | */ |
||
52 | 63 | public function __get($property) |
|
56 | } |
||
57 |