1 | <?php |
||
17 | trait ParameterTrait |
||
18 | { |
||
19 | /** |
||
20 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
21 | */ |
||
22 | protected $parameters; |
||
23 | |||
24 | /** |
||
25 | * Initialize parameters collection. |
||
26 | */ |
||
27 | protected function initializeParameters() |
||
33 | |||
34 | /** |
||
35 | * Get parameters. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getParameters() |
||
47 | |||
48 | /** |
||
49 | * Set parameters. |
||
50 | * |
||
51 | * @param array $parameters |
||
52 | * |
||
53 | * @return $this |
||
54 | */ |
||
55 | public function setParameters($parameters) |
||
69 | |||
70 | /** |
||
71 | * Has parameter. |
||
72 | * |
||
73 | * @param string $parameter |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function hasParameter($parameter) |
||
85 | |||
86 | /** |
||
87 | * Get parameter. |
||
88 | * |
||
89 | * @param string $parameter |
||
90 | * @param mixed $default |
||
91 | * |
||
92 | * @return mixed |
||
93 | */ |
||
94 | public function getParameter($parameter, $default = null) |
||
102 | |||
103 | /** |
||
104 | * Set parameter. |
||
105 | * |
||
106 | * @param string $parameter |
||
107 | * @param mixed $value |
||
108 | * |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function setParameter($parameter, $value) |
||
119 | } |
||
120 |