public static createForInvalidParameterKey ( $parameterKey ) : TypeError | ||
return | TypeError |
/** * @param string|ValueInterface $parameterKey e.g. 'dummy_param' */ public function __construct($parameterKey) { if (false === is_string($parameterKey) && false === $parameterKey instanceof ValueInterface) { throw TypeErrorFactory::createForInvalidParameterKey($parameterKey); } $this->parameterKey = $parameterKey; }