gossi\codegen\model\parts\PropertiesPart::hasProperty PHP Method

hasProperty() public method

Checks whether a property exists
public hasProperty ( PhpProperty | string $nameOrProperty ) : boolean
$nameOrProperty gossi\codegen\model\PhpProperty | string property name or instance
return 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);
    }