ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/
Upload File :
Current File : /home2/selectio/www/3-idiots/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php

<?php

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

Zerion Mini Shell 1.0