| @@ 313-320 (lines=8) @@ | ||
| 310 | * |
|
| 311 | * @return bool |
|
| 312 | */ |
|
| 313 | private function topIsObjectStart(): bool |
|
| 314 | { |
|
| 315 | if (0 === $this->stackSize) { |
|
| 316 | return false; |
|
| 317 | } |
|
| 318 | ||
| 319 | return $this->stack[$this->last()] instanceof stdClass && null === $this->pendingName; |
|
| 320 | } |
|
| 321 | ||
| 322 | /** |
|
| 323 | * Returns true if an object is the top element of the stack |
|
| @@ 327-334 (lines=8) @@ | ||
| 324 | * |
|
| 325 | * @return bool |
|
| 326 | */ |
|
| 327 | private function topIsObject() |
|
| 328 | { |
|
| 329 | if (0 === $this->stackSize) { |
|
| 330 | return false; |
|
| 331 | } |
|
| 332 | ||
| 333 | return $this->stack[$this->last()] instanceof stdClass; |
|
| 334 | } |
|
| 335 | ||
| 336 | /** |
|
| 337 | * Returns true if an array is the top element of the stack |
|