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

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

		return $this->constants->has($nameOrConstant);
	}
public function hasConstant ( $ nameOrConstant ) : bool { if ( $ nameOrConstant instanceof PhpConstant ) { $ nameOrConstant = $ nameOrConstant -> getName ( ) ; } return $ this -> constants -> has ( $ nameOrConstant ) ; }
Checks whether a constant exists

@param string|PhpConstant $nameOrConstant
@return bool
Checks whether a constant exists