public __construct ( Traversable | array $statusArray = [] ) | ||
$statusArray | Traversable | array | a collection of HTTP status code and their associated reason phrase |
public function __construct($statusArray = [])
{
foreach ($this->filterCollection($statusArray) as $code => $text) {
$this->mergeHttpStatus($code, $text);
}
}