1 | <?php |
||
10 | trait AccessorTrait |
||
11 | { |
||
12 | private $container = []; |
||
13 | |||
14 | /** |
||
15 | * @param $methodName string Key |
||
16 | * @param $args array Method Arguments |
||
17 | * |
||
18 | * @return mixed |
||
19 | */ |
||
20 | public function __call($methodName, $args) { |
||
42 | |||
43 | /** |
||
44 | * @param $property string Key |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function get($property) { |
||
55 | |||
56 | /** |
||
57 | * @param $property string Key |
||
58 | * @param $value string Value |
||
59 | * |
||
60 | * @return self |
||
61 | */ |
||
62 | public function set($property, $value) { |
||
67 | |||
68 | protected function checkArguments(array $args, $min, $max, $methodName) { |
||
74 | |||
75 | /** |
||
76 | * @return array |
||
77 | */ |
||
78 | public function getContainer() |
||
82 | } |