1 | <?php |
||
5 | trait AccessorTrait |
||
6 | { |
||
7 | private $container = []; |
||
8 | |||
9 | /** |
||
10 | * @param $methodName string Key |
||
11 | * @param $args array Method Arguments |
||
12 | * |
||
13 | * @return mixed |
||
14 | */ |
||
15 | public function __call($methodName, $args) { |
||
37 | |||
38 | /** |
||
39 | * @param $property string Key |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function get($property) { |
||
50 | |||
51 | /** |
||
52 | * @param $property string Key |
||
53 | * @param $value string Value |
||
54 | * |
||
55 | * @return self |
||
56 | */ |
||
57 | public function set($property, $value) { |
||
62 | |||
63 | protected function checkArguments(array $args, $min, $max, $methodName) { |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | */ |
||
73 | public function getContainer() |
||
77 | } |