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

		return $this->properties->has($nameOrProperty);
	}