Lines n/a 0 / 0
Functions and Methods n/a 0 / 0
Classes and Traits n/a 0 / 0
Name Lines Functions and Methods CRAP Classes and Traits
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Json;
6
7use JsonException;
8use Stewart\Contracts\Exception\StewartException;
9
10interface JsonFragment
11{
12    /** @throws JsonException|StewartException */
13    public function encodeToJson(WireMapper $mapper): string;
14
15    /** @throws StewartException */
16    public static function fromDecodedValue(mixed $value, string $path, WireMapper $mapper): static;
17}