Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Contract; |
| 6 | |
| 7 | use Cosray\Api\Serializer; |
| 8 | |
| 9 | /** |
| 10 | * A node answering the JSON request of its own URL (`Accept: |
| 11 | * application/json`) with data of its own instead of the API's resolved |
| 12 | * representation. The serializer gives that representation for this or any |
| 13 | * other node, so composed payloads stay free of panel and user data. |
| 14 | */ |
| 15 | interface Json |
| 16 | { |
| 17 | public function json(Serializer $serializer): mixed; |
| 18 | } |