Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/myclabs.zip
Назад
PK �H.]itH�_ _ 6 deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.phpnu ��� <?php namespace Rvx\DeepCopy\Matcher; use Rvx\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; } } PK �H.]�{E� � 2 deep-copy/src/DeepCopy/Matcher/PropertyMatcher.phpnu ��� <?php namespace Rvx\DeepCopy\Matcher; /** * @final */ class PropertyMatcher implements Matcher { /** * @var string */ private $class; /** * @var string */ private $property; /** * @param string $class Class name * @param string $property Property name */ public function __construct($class, $property) { $this->class = $class; $this->property = $property; } /** * Matches a specific property of a specific class. * * {@inheritdoc} */ public function matches($object, $property) { return $object instanceof $this->class && $property == $this->property; } } PK �H.]�6�� � 6 deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.phpnu ��� <?php namespace Rvx\DeepCopy\Matcher; /** * @final */ class PropertyNameMatcher implements Matcher { /** * @var string */ private $property; /** * @param string $property Property name */ public function __construct($property) { $this->property = $property; } /** * Matches a property by its name. * * {@inheritdoc} */ public function matches($object, $property) { return $property == $this->property; } } PK �H.]c�{�s s @ deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.phpnu ��� <?php namespace Rvx\DeepCopy\Matcher\Doctrine; use Rvx\DeepCopy\Matcher\Matcher; use Rvx\Doctrine\Persistence\Proxy; /** * @final */ class DoctrineProxyMatcher implements Matcher { /** * Matches a Doctrine Proxy class. * * {@inheritdoc} */ public function matches($object, $property) { return $object instanceof Proxy; } } PK �H.]<Wip� � * deep-copy/src/DeepCopy/Matcher/Matcher.phpnu ��� <?php namespace Rvx\DeepCopy\Matcher; interface Matcher { /** * @param object $object * @param string $property * * @return boolean */ public function matches($object, $property); } PK �H.]E3 �� � 1 deep-copy/src/DeepCopy/Filter/ChainableFilter.phpnu ��� <?php namespace Rvx\DeepCopy\Filter; /** * Defines a decorator filter that will not stop the chain of filters. */ class ChainableFilter implements Filter { /** * @var Filter */ protected $filter; public function __construct(Filter $filter) { $this->filter = $filter; } public function apply($object, $property, $objectCopier) { $this->filter->apply($object, $property, $objectCopier); } } PK �H.]J�#/� � / deep-copy/src/DeepCopy/Filter/ReplaceFilter.phpnu ��� <?php namespace Rvx\DeepCopy\Filter; use Rvx\DeepCopy\Reflection\ReflectionHelper; /** * @final */ class ReplaceFilter implements Filter { /** * @var callable */ protected $callback; /** * @param callable $callable Will be called to get the new value for each property to replace */ public function __construct(callable $callable) { $this->callback = $callable; } /** * Replaces the object property by the result of the callback called with the object property. * * {@inheritdoc} */ public function apply($object, $property, $objectCopier) { $reflectionProperty = ReflectionHelper::getProperty($object, $property); if (\PHP_VERSION_ID < 80100) { $reflectionProperty->setAccessible(\true); } $value = \call_user_func($this->callback, $reflectionProperty->getValue($object)); $reflectionProperty->setValue($object, $value); } } PK �H.]8�}� , deep-copy/src/DeepCopy/Filter/KeepFilter.phpnu ��� <?php namespace Rvx\DeepCopy\Filter; class KeepFilter implements Filter { /** * Keeps the value of the object property. * * {@inheritdoc} */ public function apply($object, $property, $objectCopier) { // Nothing to do } } PK �H.]��6` ` ( deep-copy/src/DeepCopy/Filter/Filter.phpnu ��� <?php namespace Rvx\DeepCopy\Filter; /** * Filter to apply to a property while copying an object */ interface Filter { /** * Applies the filter to the object. * * @param object $object * @param string $property * @param callable $objectCopier */ public function apply($object, $property, $objectCopier); } PK �H.]k�� � >