Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | public function __construct( |
||
27 | ResourceObject $resource, |
||
28 | public readonly string $method, |
||
29 | ) { |
||
30 | // Trigger rendering to get view |
||
31 | $resourceString = (string) $resource; |
||
32 | unset($resourceString); |
||
33 | |||
34 | $this->uri = (string) $resource->uri; |
||
|
|||
35 | $this->code = $resource->code; |
||
36 | $this->headers = $resource->headers; |
||
37 | $this->body = $resource->body; |
||
38 | $this->view = $resource->view; |
||
39 | } |
||
41 |