| 1 | <?php |
||
| 6 | class DeduplicationKey |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $key; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $key |
||
| 15 | */ |
||
| 16 | 2 | public function __construct(string $key) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 2 | public function key(): string |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param DeduplicationKey $other |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public function equals(DeduplicationKey $other): bool |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | public function __toString(): string |
|
| 45 | } |
||
| 46 |