public function hasConstant($nameOrConstant): bool {
		if ($nameOrConstant instanceof PhpConstant) {
			$nameOrConstant = $nameOrConstant->getName();
		}

		return $this->constants->has($nameOrConstant);
	}