Lukasoppermann\Httpstatus\Httpstatus::hasReasonPhrase PHP Méthode

hasReasonPhrase() public méthode

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