@@ 128-136 (lines=9) @@ | ||
125 | /** |
|
126 | * {@inheritdoc} |
|
127 | */ |
|
128 | public function pad($size, $value) |
|
129 | { |
|
130 | $this->validate($this->type, [$value]); |
|
131 | ||
132 | return new self( |
|
133 | $this->type, |
|
134 | parent::pad($size, $value)->toPrimitive() |
|
135 | ); |
|
136 | } |
|
137 | ||
138 | /** |
|
139 | * {@inheritdoc} |
|
@@ 165-173 (lines=9) @@ | ||
162 | /** |
|
163 | * {@inheritdoc} |
|
164 | */ |
|
165 | public function push($value) |
|
166 | { |
|
167 | $this->validate($this->type, [$value]); |
|
168 | ||
169 | return new self( |
|
170 | $this->type, |
|
171 | parent::push($value)->toPrimitive() |
|
172 | ); |
|
173 | } |
|
174 | ||
175 | /** |
|
176 | * {@inheritdoc} |
|
@@ 283-291 (lines=9) @@ | ||
280 | /** |
|
281 | * {@inheritdoc} |
|
282 | */ |
|
283 | public function unshift($value) |
|
284 | { |
|
285 | $this->validate($this->type, [$value]); |
|
286 | ||
287 | return new self( |
|
288 | $this->type, |
|
289 | parent::unshift($value)->toPrimitive() |
|
290 | ); |
|
291 | } |
|
292 | ||
293 | /** |
|
294 | * {@inheritdoc} |