public function hasProperty($nameOrProperty): bool {
		if ($nameOrProperty instanceof PhpProperty) {
			$nameOrProperty = $nameOrProperty->getName();
		}

		return $this->properties->has($nameOrProperty);
	}
public function hasProperty($nameOrProperty): bool {
		if ($nameOrProperty instanceof PhpProperty) {
			$nameOrProperty = $nameOrProperty->getName();
		}

		return $this->properties->has($nameOrProperty);
	}
public function hasProperty ( $ nameOrProperty ) : bool { if ( $ nameOrProperty instanceof PhpProperty ) { $ nameOrProperty = $ nameOrProperty -> getName ( ) ; } return $ this -> properties -> has ( $ nameOrProperty ) ; }
Checks whether a property exists

@param PhpProperty|string $nameOrProperty property name or instance
@return bool `true` if a property exists and `false` if not
Checks whether a property exists