1 | <?php |
||
10 | class DefaultContext implements Context |
||
11 | { |
||
12 | /** @var JsonMapper|null */ |
||
13 | private $jsonMapper; |
||
14 | |||
15 | /** @var JwsAlgorithmCollection */ |
||
16 | private $jwsAlgorithms; |
||
17 | |||
18 | /** @var JweAlgorithmCollection */ |
||
19 | private $jweAlgorithms; |
||
20 | |||
21 | /** @var JweEncryptionCollection */ |
||
22 | private $jweEncryptions; |
||
23 | |||
24 | /** |
||
25 | */ |
||
26 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * @return JsonMapper|null |
||
35 | */ |
||
36 | public function jsonMapper() |
||
40 | |||
41 | /** |
||
42 | * @return JwsAlgorithmCollection |
||
43 | */ |
||
44 | public function jwsAlgorithms() |
||
48 | |||
49 | /** |
||
50 | * @return JweAlgorithmCollection |
||
51 | */ |
||
52 | public function jweAlgorithms() |
||
56 | |||
57 | /** |
||
58 | * @return JweEncryptionCollection |
||
59 | */ |
||
60 | public function jweEncryptions() |
||
64 | |||
65 | /** |
||
66 | * @param JsonMapper|null $jsonMapper |
||
67 | * |
||
68 | * @return DefaultContext |
||
69 | */ |
||
70 | public function setJsonMapper(JsonMapper $jsonMapper = null) |
||
76 | } |
||
77 |