1 | <?php |
||
10 | trait TypedHeader |
||
11 | { |
||
12 | /** |
||
13 | * Whether parameters are present. |
||
14 | * |
||
15 | * @param string ...$names Parameter names |
||
16 | * @return bool |
||
17 | */ |
||
18 | abstract public function has(...$names); |
||
19 | |||
20 | /** |
||
21 | * Get a parameter. |
||
22 | * |
||
23 | * @param string $name Parameter name |
||
24 | * @return JWTParameter |
||
25 | */ |
||
26 | abstract public function get($name); |
||
27 | |||
28 | /** |
||
29 | * |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function hasAlgorithm() { |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @throws \UnexpectedValueException |
||
39 | * @return AlgorithmParameter |
||
40 | */ |
||
41 | public function algorithm() { |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | 5 | public function hasAuthenticationTag() { |
|
56 | |||
57 | /** |
||
58 | * |
||
59 | * @throws \UnexpectedValueException |
||
60 | * @return AuthenticationTagParameter |
||
61 | */ |
||
62 | 4 | public function authenticationTag() { |
|
69 | } |
||
70 |