Lukasoppermann\Httpstatus\Httpstatus::hasReasonPhrase PHP 메소드

hasReasonPhrase() 공개 메소드

Check if the hasReasonPhrase exists in a collection.
public hasReasonPhrase ( integer $statusText ) : boolean
$statusText integer http status text
리턴 boolean true|false
    public function hasReasonPhrase($statusText)
    {
        try {
            $statusText = $this->filterReasonPhrase($statusText);
        } catch (InvalidArgumentException $e) {
            return false;
        }
        return (bool) $this->fetchStatusCode($statusText);
    }