PHP 8.3.31
Preview: PropertyMatcher.php Size: 691 B
/home/getspomw/royalsquad.us/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: 5

Name Size Perms Modified Actions
Doctrine DIR
- drwxrwxrwx 2026-04-22 18:09:31
Edit Download
3.11 KB lrw-r--r-- 2026-04-26 08:25:17
Edit Download
213 B lrw-rw-rw- 2025-09-17 06:53:39
Edit Download
691 B lrw-rw-rw- 2025-09-17 06:53:39
Edit Download
504 B lrw-rw-rw- 2025-09-17 06:53:39
Edit Download
1.29 KB lrw-rw-rw- 2025-09-17 06:53:39
Edit Download

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