1 | <?php |
||
8 | class PayloadBuilder implements PayloadBuilderInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $payload = []; |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function claim(ClaimBuilderInterface $claim) |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function userData($data = []) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getValue() |
||
44 | |||
45 | /** |
||
46 | * Aggregate JWT payload by pairing it's name with it's value. |
||
47 | * |
||
48 | * @param string $name |
||
49 | * @param mixed $value |
||
50 | * @return $this |
||
51 | */ |
||
52 | private function collectPayload($name, $value) |
||
58 | } |
||
59 |