✏️ 正在编辑: PropertyMatcher.php
路径:
/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; } }
💾 保存文件
← 返回文件管理器