Total Complexity | 8 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class JOSE extends Header |
||
17 | { |
||
18 | /** |
||
19 | * Constructor. |
||
20 | * |
||
21 | * @param Header ...$headers One or more headers to merge |
||
22 | */ |
||
23 | 50 | public function __construct(Header ...$headers) |
|
35 | 49 | } |
|
36 | |||
37 | /** |
||
38 | * Get self merged with another Header. |
||
39 | * |
||
40 | * @param Header $header |
||
41 | * |
||
42 | * @return self |
||
43 | */ |
||
44 | 2 | public function withHeader(Header $header): self |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Whether JOSE is for a JWS. |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | 2 | public function isJWS(): bool |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * Whether JOSE is for a JWE. |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | 2 | public function isJWE(): bool |
|
69 |