Page MenuHomeWickedGov Phorge

CutArrayStub.php
No OneTemporary

Size
702 B
Referenced Files
None
Subscribers
None

CutArrayStub.php

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\VarDumper\Caster;
/**
* Represents a cut array.
*
* @author Nicolas Grekas <p@tchwork.com>
*/
class CutArrayStub extends CutStub
{
public array $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);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 21:22 (1 w, 19 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
70/f8/6f24a1098ef43e151e5585e0798e
Default Alt Text
CutArrayStub.php (702 B)

Event Timeline