| Total Complexity | 8 |
| Total Lines | 43 |
| 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 | 51 | public function __construct(Header ...$headers) |
|
| 35 | 50 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get self merged with another Header. |
||
| 39 | */ |
||
| 40 | 2 | public function withHeader(Header $header): self |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Whether JOSE is for a JWS. |
||
| 47 | */ |
||
| 48 | 2 | public function isJWS(): bool |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Whether JOSE is for a JWE. |
||
| 55 | */ |
||
| 56 | 2 | public function isJWE(): bool |
|
| 61 |