| 1 | <?php |
||
| 8 | final class ContentID implements HeaderInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $contentID; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * From constructor. |
||
| 17 | * @param string $contentID |
||
| 18 | */ |
||
| 19 | 13 | public function __construct(string $contentID) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return HeaderName |
||
| 26 | */ |
||
| 27 | 13 | public function getName(): HeaderName |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return HeaderValue |
||
| 34 | */ |
||
| 35 | 5 | public function getValue(): HeaderValue |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $localPart |
||
| 42 | * @param string $domain |
||
| 43 | * @return ContentID |
||
| 44 | */ |
||
| 45 | 2 | public static function fromUrlAddress(string $localPart, string $domain): self |
|
| 55 | } |