Lines 100.00% 3 / 3
Methods 100.00% 3 / 3
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 getTenantId 100.00% 1 / 1 100.00% 1 / 1 1
 getContext 100.00% 1 / 1 100.00% 1 / 1 1
24class TenantLifecycleEvent extends Event
25{
26    public function __construct(
27        private readonly int $tenantId,
28        /** @var array<string, mixed> */
29        private readonly array $context = [],
30    ) {
31    }
32
33    public function getTenantId(): int
34    {
35        return $this->tenantId;
36    }
37
38    /**
39     * @return array<string, mixed>
40     */
41    public function getContext(): array
42    {
43        return $this->context;
44    }
45}