CoreFiles by mySites.guru
CutArrayStub.php30 lines, 696 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
e63fe90d2c147bdfe5b49d232e5802c2
sha1
ef7e6fe12dbc19f6b69417ea4c97cdaa5540965f
sha256
d2ff78081bad8c423bcb40c4cea10368bbea195467861d14bc971c4756536d78
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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 <[email protected]>
 */
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);
    }
}

The same content is in 248 releases, Joomla 4.0.0-alpha5 to 6.0.0-alpha3. See them all, or every version of this file.