| Total Complexity | 1 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | final class ResourceCompleteContext extends AbstractContext |
||
| 14 | { |
||
| 15 | /** @psalm-suppress InvalidClassConstantType */ |
||
| 16 | public const TYPE = 'bear_resource_complete'; |
||
| 17 | |||
| 18 | /** @psalm-suppress InvalidClassConstantType */ |
||
| 19 | public const SCHEMA_URL = 'https://bearsunday.github.io/BEAR.Resource/schemas/bear-resource-complete.json'; |
||
| 20 | |||
| 21 | public readonly string $uri; |
||
| 22 | public readonly string $method; |
||
| 23 | public readonly int $code; |
||
| 24 | |||
| 25 | /** @var array<string, string> */ |
||
| 26 | public readonly array $headers; |
||
| 27 | public readonly mixed $body; |
||
| 28 | public readonly string $view; |
||
| 29 | |||
| 30 | public function __construct(ResourceObject $resource, string $method) |
||
| 45 |