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() |
||
45 | |||
46 | /** |
||
47 | * Set parameters. |
||
48 | * |
||
49 | * @param array $parameters |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setParameters($parameters) |
||
67 | |||
68 | /** |
||
69 | * Has parameter. |
||
70 | * |
||
71 | * @param string $parameter |
||
72 | * |
||
73 | * @return bool |
||
74 | */ |
||
75 | public function hasParameter($parameter) |
||
81 | |||
82 | /** |
||
83 | * Get parameter. |
||
84 | * |
||
85 | * @param string $parameter |
||
86 | * @param mixed $default |
||
87 | * |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getParameter($parameter, $default = null) |
||
96 | |||
97 | /** |
||
98 | * Set parameter. |
||
99 | * |
||
100 | * @param string $parameter |
||
101 | * @param mixed $value |
||
102 | * |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setParameter($parameter, $value) |
||
113 | } |
||
114 |