1: <?php
2:
3: namespace PHPixie\HTTP\Messages\Message;
4:
5: use Psr\Http\Message\StreamInterface;
6:
7: /**
8: * PSR-7 Message implementation
9: */
10: class Implementation extends \PHPixie\HTTP\Messages\Message
11: {
12: /**
13: * Constructor
14: * @param string $protocolVersion
15: * @param array $headers
16: * @param StreamInterface $body
17: */
18: public function __construct($protocolVersion, $headers, $body)
19: {
20: $this->validateHeaders($headers);
21:
22: $this->protocolVersion = $protocolVersion;
23: $this->headers = $headers;
24: $this->body = $body;
25: }
26: }