1 | <?php |
||
12 | final class Parameters |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $selector; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $domain; |
||
24 | |||
25 | /** |
||
26 | * @var \DateTimeImmutable |
||
27 | */ |
||
28 | private $signatureTimestamp; |
||
29 | |||
30 | /** |
||
31 | * @var \DateTimeImmutable |
||
32 | */ |
||
33 | private $signatureExpiration; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Parameters constructor. |
||
38 | * @param string $selector |
||
39 | * @param string $domain |
||
40 | */ |
||
41 | 9 | public function __construct(string $selector, string $domain) |
|
46 | |||
47 | /** |
||
48 | * @param \DateTimeImmutable $moment |
||
49 | * @return Parameters |
||
50 | */ |
||
51 | 2 | public function withSignatureTimestamp(\DateTimeImmutable $moment): self |
|
57 | |||
58 | /** |
||
59 | * @param \DateTimeImmutable $moment |
||
60 | * @return Parameters |
||
61 | */ |
||
62 | 1 | public function withSignatureExpiration(\DateTimeImmutable $moment): self |
|
68 | |||
69 | /** |
||
70 | * @return HeaderValue |
||
71 | */ |
||
72 | 9 | public function newHeaderValue(): HeaderValue |
|
112 | } |