PHP 8.2.31
Preview: PropertyMatcher.php Size: 691 B
//opt/cpanel/ea-wappspector/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyMatcher.php

<?php

namespace 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;
    }
}

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
Doctrine DIR
- drwxr-xr-x 2025-08-01 08:46:24
Edit Download
213 B lrw-r--r-- 2025-08-01 08:46:24
Edit Download
691 B lrw-r--r-- 2025-08-01 08:46:24
Edit Download
504 B lrw-r--r-- 2025-08-01 08:46:24
Edit Download
1.34 KB lrw-r--r-- 2025-08-01 08:46:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).