public function __construct($parameterKey) { if (false === is_string($parameterKey) && false === $parameterKey instanceof ValueInterface) { throw TypeErrorFactory::createForInvalidParameterKey($parameterKey); } $this->parameterKey = $parameterKey; }