| 1 | <?php |
||
| 6 | class Response implements ResponseInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var int |
||
| 10 | */ |
||
| 11 | private $type; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var array|null |
||
| 15 | */ |
||
| 16 | private $data; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array|null |
||
| 20 | */ |
||
| 21 | private $backtrace; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array|null |
||
| 25 | */ |
||
| 26 | private $profile; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var array|null |
||
| 30 | */ |
||
| 31 | private $note; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param int|null $t |
||
| 35 | * @param array|null $r |
||
| 36 | * @param array|null $b |
||
| 37 | * @param array|null $p |
||
| 38 | * @param array|null $n |
||
| 39 | */ |
||
| 40 | 16 | public function __construct(int $t = null, array $r = null, array $b = null, array $p = null, array $n = null) |
|
| 41 | { |
||
| 42 | 16 | !$t ?: $this->type = $t; |
|
| 43 | 16 | !$r ?: $this->data = $r; |
|
| 44 | 16 | !$b ?: $this->backtrace = $b; |
|
| 45 | 16 | !$p ?: $this->profile = $p; |
|
| 46 | 16 | !$n ?: $this->note = $n; |
|
| 47 | 16 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | 16 | public function getType(): ?int |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 16 | public function getData(): ?array |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | 1 | public function getBacktrace(): ?array |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return array |
||
| 75 | */ |
||
| 76 | 1 | public function getProfile(): ?array |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return array |
||
| 83 | */ |
||
| 84 | 1 | public function getNote(): ?array |
|
| 88 | } |
||
| 89 |