123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Symfony\Component\VarDumper\Caster;
- class CutArrayStub extends CutStub
- {
- public $preservedSubset;
- public function __construct(array $value, array $preservedKeys)
- {
- parent::__construct($value);
- $this->preservedSubset = array_intersect_key($value, array_flip($preservedKeys));
- $this->cut -= \count($this->preservedSubset);
- }
- }
|