private function validateHeaders(HeaderBag $headers)
    {
        $this->errors = array_merge(
            $this->errors,
            Validator::validate($headers)
        );
    }
private function validateHeaders(HeaderBag $headers)
    {
        $this->errors = array_merge(
            $this->errors,
            Validator::validate($headers)
        );
    }
private function validateHeaders ( HeaderBag $ headers ) { $ this -> errors = array_merge ( $ this -> errors , Validator :: validate ( $ headers ) ) ; }
Validate headers in the HeaderBag and store any errors internally.

@param HeaderBag $headers
@return void
Validate headers in the HeaderBag and store any errors internally .