__construct() public method

Constructor.
public __construct ( array $headers = [] )
$headers array An array of HTTP headers
Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param array            $headers
  * @param RequestInterface $request
  */
 public function __construct(array $headers, RequestInterface $request)
 {
     $this->request = $request;
     parent::__construct($headers);
 }
Ejemplo n.º 2
0
 /**
  * @param array $headers
  * @param RequestContract $request
  */
 public function __construct(array $headers, RequestContract $request)
 {
     $this->request = $request;
     parent::__construct($headers);
 }