1 | <?php |
||
31 | class Response implements IResponse |
||
32 | { |
||
33 | /** |
||
34 | * @var PsrResponse |
||
35 | */ |
||
36 | private $response; |
||
37 | |||
38 | /** |
||
39 | * @var Objects\IDocument|NULL |
||
40 | */ |
||
41 | private $document; |
||
42 | |||
43 | /** |
||
44 | * @param PsrResponse $response |
||
45 | * @param Objects\IDocument|NULL $document |
||
46 | */ |
||
47 | public function __construct(PsrResponse $response, ?Objects\IDocument $document = NULL) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getPsrResponse() : PsrResponse |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getDocument() : Objects\IDocument |
||
68 | } |
||
69 |