1 | <?php |
||
5 | trait OptionTrait |
||
6 | { |
||
7 | /** @var array */ |
||
8 | protected $options = array(); |
||
9 | |||
10 | /** |
||
11 | * @param string $name |
||
12 | * @param mixed $value |
||
13 | * @return $this |
||
14 | */ |
||
15 | public function setOption($name, $value) |
||
25 | |||
26 | /** |
||
27 | * @param string $name |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function getOption($name) |
||
34 | |||
35 | /** |
||
36 | * @param string $name |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function removeOption($name) |
||
47 | } |
||
48 |