Lines 0.00% 0 / 2
Methods 0.00% 0 / 2
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
 decodeJson 0.00% 0 / 1 0.00% 0 / 1 2
10final class JsonDecoder
11{
12    private function __construct() {}
13
14    /**
15     * @param int<1, max> $depth
16     * @throws JsonException
17     */
18    public static function decodeJson(string $json, int $depth = 512): mixed
19    {
20        return json_decode($json, true, $depth, \JSON_THROW_ON_ERROR);
21    }
22}