original_string: protected function validateReasonPhrase($reasonPhrase) : void
  	{
  		if (! \is_string($reasonPhrase))
  		{
  			throw new \InvalidArgumentException('HTTP reason-phrase must be a string');
  		}
  		else if (! \preg_match(HeaderInterface::RFC7230_FIELD_VALUE, $reasonPhrase))
  		{
  			throw new \InvalidArgumentException(\sprintf('The given reason-phrase "%s" is not valid', $reasonPhrase));
  		}
  	}
code: protected function validateReasonPhrase($reasonPhrase) : void
  	{
  		if (! \is_string($reasonPhrase))
  		{
  			throw new \InvalidArgumentException('HTTP reason-phrase must be a string');
  		}
  		else if (! \preg_match(HeaderInterface::RFC7230_FIELD_VALUE, $reasonPhrase))
  		{
  			throw new \InvalidArgumentException(\sprintf('The given reason-phrase "%s" is not valid', $reasonPhrase));
  		}
  	}
code_tokens: protected function validateReasonPhrase ( $ reasonPhrase ) : void { if ( ! \ is_string ( $ reasonPhrase ) ) { throw new \ InvalidArgumentException ( 'HTTP reason-phrase must be a string' ) ; } else if ( ! \ preg_match ( HeaderInterface :: RFC7230_FIELD_VALUE , $ reasonPhrase ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'The given reason-phrase "%s" is not valid' , $ reasonPhrase ) ) ; } }
docstring: Validates the given reason-phrase
  
  @param mixed $reasonPhrase
  
  @return void
  
  @throws \InvalidArgumentException
  
  @link https://tools.ietf.org/html/rfc7230#section-3.1.2
docstring_tokens: Validates the given reason - phrase