public hasReasonPhrase ( integer $statusText ) : boolean | ||
$statusText | integer | http status text |
return | boolean | true|false |
public function hasReasonPhrase($statusText)
{
try {
$statusText = $this->filterReasonPhrase($statusText);
} catch (InvalidArgumentException $e) {
return false;
}
return (bool) $this->fetchStatusCode($statusText);
}