1 | <?php |
||
17 | trait MessageTrait |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $parameters = []; |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
26 | */ |
||
27 | 14619 | public function getParameters() |
|
31 | |||
32 | /** |
||
33 | * @param string $name |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | 393 | public function hasParameter($name) |
|
41 | |||
42 | /** |
||
43 | * @param string $name |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | 393 | public function getParameter($name) |
|
51 | |||
52 | /** |
||
53 | * @param string $name |
||
54 | * @param mixed $value |
||
55 | * |
||
56 | * @return object |
||
57 | */ |
||
58 | 384 | public function withParameter($name, $value) |
|
65 | |||
66 | /** |
||
67 | * @param string $name |
||
68 | * @param mixed $value |
||
69 | * |
||
70 | * @return object |
||
71 | */ |
||
72 | 9 | public function withAddedParameter($name, $value) |
|
81 | |||
82 | /** |
||
83 | * @param string $name |
||
84 | * |
||
85 | * @return object |
||
86 | */ |
||
87 | 9 | public function withoutParameter($name) |
|
94 | } |
||
95 |