1 | <?php |
||
19 | class DefaultContext implements Context |
||
20 | { |
||
21 | /** @var JsonMapper|null */ |
||
22 | private $jsonMapper; |
||
23 | |||
24 | /** @var JwsAlgorithmCollection */ |
||
25 | private $jwsAlgorithms; |
||
26 | |||
27 | /** @var JweAlgorithmCollection */ |
||
28 | private $jweAlgorithms; |
||
29 | |||
30 | /** @var JweEncryptionCollection */ |
||
31 | private $jweEncryptions; |
||
32 | |||
33 | public function __construct() |
||
39 | |||
40 | /** |
||
41 | * @return JsonMapper|null |
||
42 | */ |
||
43 | public function jsonMapper() |
||
47 | |||
48 | /** |
||
49 | * @return JwsAlgorithmCollection |
||
50 | */ |
||
51 | public function jwsAlgorithms() |
||
55 | |||
56 | /** |
||
57 | * @return JweAlgorithmCollection |
||
58 | */ |
||
59 | public function jweAlgorithms() |
||
63 | |||
64 | /** |
||
65 | * @return JweEncryptionCollection |
||
66 | */ |
||
67 | public function jweEncryptions() |
||
71 | |||
72 | /** |
||
73 | * @param JsonMapper|null $jsonMapper |
||
74 | * |
||
75 | * @return DefaultContext |
||
76 | */ |
||
77 | public function setJsonMapper(JsonMapper $jsonMapper = null) |
||
83 | } |
||
84 |