12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace Symfony\Component\VarDumper\Caster;
- use Symfony\Component\VarDumper\Cloner\Stub;
- class StubCaster
- {
- public static function castStub(Stub $c, array $a, Stub $stub, $isNested)
- {
- if ($isNested) {
- $stub->type = $c->type;
- $stub->class = $c->class;
- $stub->value = $c->value;
- $stub->handle = $c->handle;
- $stub->cut = $c->cut;
- return array();
- }
- }
- public static function cutInternals($obj, array $a, Stub $stub, $isNested)
- {
- if ($isNested) {
- $stub->cut += count($a);
- return array();
- }
- return $a;
- }
- }
|