public hasProperty ( |
||
$nameOrProperty | property name or instance | |
리턴 | boolean | `true` if a property exists and `false` if not |
public function hasProperty($nameOrProperty)
{
if ($nameOrProperty instanceof PhpProperty) {
$nameOrProperty = $nameOrProperty->getName();
}
return $this->properties->has($nameOrProperty);
}