Lukasoppermann\Httpstatus\Httpstatus::__construct PHP Method

__construct() public method

Create a new Httpstatus Instance.
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);
        }
    }