friendship ended with social-app. php is my new best friend
1<?php
2declare(strict_types=1);
3
4namespace Lcobucci\JWT;
5
6use Lcobucci\JWT\Encoding\CannotDecodeContent;
7
8interface Decoder
9{
10 /**
11 * Decodes from JSON, validating the errors
12 *
13 * @param non-empty-string $json
14 *
15 * @throws CannotDecodeContent When something goes wrong while decoding.
16 */
17 public function jsonDecode(string $json): mixed;
18
19 /**
20 * Decodes from Base64URL
21 *
22 * @link http://tools.ietf.org/html/rfc4648#section-5
23 *
24 * @return ($data is non-empty-string ? non-empty-string : string)
25 *
26 * @throws CannotDecodeContent When something goes wrong while decoding.
27 */
28 public function base64UrlDecode(string $data): string;
29}