| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class DefaultResponse extends Response |
||
| 8 | { |
||
| 9 | /** @var mixed */ |
||
| 10 | protected $data; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | protected $resourceClass; |
||
| 14 | |||
| 15 | public function __construct($data, ?string $resourceClass = null) |
||
| 16 | { |
||
| 17 | $this->data = $data; |
||
| 18 | $this->resourceClass = $resourceClass; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function toResponse($request) |
||
| 30 | } |
||
| 31 | } |
||
| 32 |