░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
vps.doorgans.com
LOCATION:
/opt/cpanel/ea-wappspector/vendor/myclabs/deep-copy/src/DeepCopy/Matcher
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: PropertyTypeMatcher.php
<?php namespace DeepCopy\Matcher; use DeepCopy\Reflection\ReflectionHelper; use ReflectionException; /** * Matches a property by its type. * * It is recommended to use {@see DeepCopy\TypeFilter\TypeFilter} instead, as it applies on all occurrences * of given type in copied context (eg. array elements), not just on object properties. * * @final */ class PropertyTypeMatcher implements Matcher { /** * @var string */ private $propertyType; /** * @param string $propertyType Property type */ public function __construct($propertyType) { $this->propertyType = $propertyType; } /** * {@inheritdoc} */ public function matches($object, $property) { try { $reflectionProperty = ReflectionHelper::getProperty($object, $property); } catch (ReflectionException $exception) { return false; } if (PHP_VERSION_ID < 80100) { $reflectionProperty->setAccessible(true); } // Uninitialized properties (for PHP >7.4) if (method_exists($reflectionProperty, 'isInitialized') && !$reflectionProperty->isInitialized($object)) { // null instanceof $this->propertyType return false; } return $reflectionProperty->getValue($object) instanceof $this->propertyType; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 Doctrine/
DIR
—
2025-08-01 08:46
📄 Matcher.php
PHP
213 B
2025-08-01 08:46
EDIT
📄 PropertyMatcher.php
PHP
691 B
2025-08-01 08:46
EDIT
📄 PropertyNameMatcher.php
PHP
504 B
2025-08-01 08:46
EDIT
📄 PropertyTypeMatcher.php
PHP
1.3 KB
2025-08-01 08:46
EDIT