1 | <?php |
||
23 | class Presentation implements PresentationInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var ResourceInterface |
||
27 | */ |
||
28 | private $resource; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $statusCode; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | * |
||
38 | * @param int $statusCode |
||
39 | * @param ResourceInterface|null $resource |
||
40 | */ |
||
41 | 40 | public function __construct(int $statusCode, ResourceInterface $resource = null) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 40 | public function getResource(): ?ResourceInterface |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 40 | public function getStatusCode(): int |
|
62 | } |
||
63 |