| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_METHOD)] |
||
| 8 | final class HydrationKey |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private string $key; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $key |
||
| 17 | */ |
||
| 18 | 23 | public function __construct(string $key) |
|
| 19 | { |
||
| 20 | 23 | $this->key = $key; |
|
| 21 | 23 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | 16 | public function getKey(): string |
|
| 29 | } |
||
| 30 | } |
||
| 31 |