Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5980410
CutArrayStub.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
CutArrayStub.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment