| 1 | <?php declare(strict_types = 1); | ||
| 17 | class Response implements Element | ||
| 18 | { | ||
| 19 | use VisiteeMixin; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var int | ||
| 23 | */ | ||
| 24 | protected $code; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var Schema | ||
| 28 | */ | ||
| 29 | protected $schema; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Response constructor. | ||
| 33 | * | ||
| 34 | * @param int $code | ||
| 35 | * @param Schema $schema | ||
| 36 | */ | ||
| 37 | public function __construct(int $code, Schema $schema) | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @return int | ||
| 45 | */ | ||
| 46 | public function getCode(): int | ||
| 50 | |||
| 51 | /** | ||
| 52 | * @return Schema | ||
| 53 | */ | ||
| 54 | public function getSchema(): Schema | ||
| 58 | } | ||
| 59 |