1 | <?php |
||
13 | final class PlainMessage implements Message, \ArrayAccess |
||
14 | { |
||
15 | private $name; |
||
16 | private $arguments; |
||
17 | |||
18 | /** |
||
19 | * @param string $name |
||
20 | * @param array $arguments |
||
21 | */ |
||
22 | 50 | public function __construct($name, array $arguments = []) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 34 | public function getName() |
|
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | 2 | public function all() |
|
43 | |||
44 | /** |
||
45 | * Returns the argument if found or null. |
||
46 | * |
||
47 | * @param string $name |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 2 | public function get($name) |
|
55 | |||
56 | /** |
||
57 | * Checks whether the arguments contain the given key. |
||
58 | * |
||
59 | * @param string $name |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | 2 | public function has($name) |
|
67 | |||
68 | 1 | public function offsetGet($offset) |
|
72 | |||
73 | 1 | public function offsetExists($offset) |
|
77 | |||
78 | 1 | public function offsetSet($offset, $value) |
|
82 | |||
83 | 1 | public function offsetUnset($offset) |
|
87 | |||
88 | 1 | public function __get($property) |
|
92 | |||
93 | 1 | public function __isset($property) |
|
97 | |||
98 | 1 | public function __set($property, $value) |
|
102 | |||
103 | 1 | public function __unset($property) |
|
107 | } |
||
108 |