1 | <?php |
||
13 | class Method |
||
14 | { |
||
15 | public $name; |
||
16 | public $method; |
||
17 | public $context = []; |
||
18 | public $defaultContext = true; |
||
19 | public $inherit = true; |
||
20 | |||
21 | 1 | public function __construct(array $values) |
|
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function getName() |
||
52 | |||
53 | /** |
||
54 | * @param mixed $name |
||
55 | */ |
||
56 | 1 | public function setName($name) |
|
60 | |||
61 | /** |
||
62 | * @return mixed |
||
63 | */ |
||
64 | 2 | public function getMethod() |
|
68 | |||
69 | /** |
||
70 | * @param mixed $method |
||
71 | */ |
||
72 | 1 | public function setMethod($method) |
|
76 | |||
77 | /** |
||
78 | * @return array |
||
79 | */ |
||
80 | 2 | public function getContext() |
|
84 | |||
85 | /** |
||
86 | * @param array $context |
||
87 | */ |
||
88 | 1 | public function setContext($context) |
|
92 | |||
93 | /** |
||
94 | * @return boolean |
||
95 | */ |
||
96 | 2 | public function withDefaultContext() |
|
97 | { |
||
98 | 2 | return $this->defaultContext; |
|
99 | } |
||
100 | |||
101 | /** |
||
102 | * @param boolean $defaultContext |
||
103 | */ |
||
104 | 1 | public function setDefaultContext($defaultContext) |
|
108 | |||
109 | /** |
||
110 | * @return boolean |
||
111 | */ |
||
112 | 2 | public function isInherit() |
|
116 | |||
117 | /** |
||
118 | * @param boolean $inherit |
||
119 | */ |
||
120 | 1 | public function setInherit($inherit) |
|
124 | } |
||
125 |