1 | <?php |
||
17 | class JOSE extends Header |
||
18 | { |
||
19 | /** |
||
20 | * Constructor |
||
21 | * |
||
22 | * @param Header ...$headers One or more headers to merge |
||
23 | */ |
||
24 | 27 | public function __construct(Header ...$headers) { |
|
36 | |||
37 | /** |
||
38 | * Get self merged with another Header. |
||
39 | * |
||
40 | * @param Header $header |
||
41 | * @return self |
||
42 | */ |
||
43 | 2 | public function withHeader(Header $header) { |
|
46 | |||
47 | /** |
||
48 | * Whether JOSE is for a JWS. |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | 2 | public function isJWS() { |
|
56 | |||
57 | /** |
||
58 | * Whether JOSE is for a JWE. |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | 2 | public function isJWE() { |
|
65 | } |
||
66 |