| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | final class Identity implements ConsumerIdentity |
||
| 10 | { |
||
| 11 | private string $id; |
||
| 12 | /** |
||
| 13 | * @var array<string, mixed> |
||
| 14 | */ |
||
| 15 | private array $payload; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Identity constructor. |
||
| 19 | * |
||
| 20 | * @param string $id |
||
| 21 | * @param array<string, mixed> $payload |
||
| 22 | */ |
||
| 23 | 10 | public function __construct(string $id, array $payload = []) |
|
| 24 | { |
||
| 25 | 10 | $this->id = $id; |
|
| 26 | 10 | $this->payload = $payload; |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | public function id(): string |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return array<string, mixed> |
||
| 36 | */ |
||
| 37 | 6 | public function payload(): array |
|
| 42 |