1 | <?php |
||
11 | class Attributes implements AttributesContract |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $attributes; |
||
17 | |||
18 | /** |
||
19 | * @inheritDoc |
||
20 | */ |
||
21 | 41 | public function __construct(array $attributes) |
|
25 | |||
26 | /** |
||
27 | * @inheritDoc |
||
28 | */ |
||
29 | 6 | public function get($name, $default = null) |
|
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 2 | public function set(array $attributes) |
|
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | 17 | public function all() |
|
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | 3 | public function has($name) |
|
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | 1 | public function forget($name) |
|
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | 4 | public function push(array $attributes) |
|
82 | |||
83 | /** |
||
84 | * @inheritDoc |
||
85 | */ |
||
86 | 9 | public function put($name, $value) |
|
92 | |||
93 | /** |
||
94 | * @inheritDoc |
||
95 | */ |
||
96 | 1 | public function merge(array $attributes) |
|
102 | |||
103 | /** |
||
104 | * @inheritDoc |
||
105 | */ |
||
106 | 10 | public function build($attributes = []) |
|
119 | |||
120 | /** |
||
121 | * @inheritDoc |
||
122 | */ |
||
123 | 1 | public function __toString() |
|
127 | |||
128 | /** |
||
129 | * @inheritDoc |
||
130 | */ |
||
131 | 4 | public function toArray() |
|
138 | |||
139 | /** |
||
140 | * @inheritDoc |
||
141 | */ |
||
142 | 1 | public function offsetExists($offset) |
|
146 | |||
147 | /** |
||
148 | * @inheritDoc |
||
149 | */ |
||
150 | 1 | public function offsetGet($offset) |
|
154 | |||
155 | /** |
||
156 | * @inheritDoc |
||
157 | */ |
||
158 | 1 | public function offsetSet($offset, $value) |
|
162 | |||
163 | /** |
||
164 | * @inheritDoc |
||
165 | */ |
||
166 | 1 | public function offsetUnset($offset) |
|
170 | |||
171 | /** |
||
172 | * @inheritDoc |
||
173 | */ |
||
174 | 4 | public function serialize() |
|
178 | |||
179 | /** |
||
180 | * @inheritDoc |
||
181 | */ |
||
182 | 3 | public function unserialize($serialized) |
|
186 | } |