Embryo/Http/Message/Traits/ResponseTrait.php
protected function filterReasonPhrase(int $status, string $reasonPhrase = '')
        {
            $messages = $this->getMessages();
            if ($reasonPhrase === '' && isset($messages[$status])) {
                $reasonPhrase = $messages[$status];
            }
            return $reasonPhrase;
        }
protected function filterReasonPhrase(int $status, string $reasonPhrase = '')
        {
            $messages = $this->getMessages();
            if ($reasonPhrase === '' && isset($messages[$status])) {
                $reasonPhrase = $messages[$status];
            }
            return $reasonPhrase;
        }
protected function filterReasonPhrase ( int $ status , string $ reasonPhrase = '' ) { $ messages = $ this -> getMessages ( ) ; if ( $ reasonPhrase === '' && isset ( $ messages [ $ status ] ) ) { $ reasonPhrase = $ messages [ $ status ] ; } return $ reasonPhrase ; }
Validates Http status reason phrase

@param int $status
@param string $reasonPhrase
@return string
@throws InvalidArgumentException
Validates Http status reason phrase