organization = $organization; } public function organization(): Organization { return $this->organization ?? throw new LogicException('Tenant context has not been established.'); } public function id(): string { return $this->organization()->getKey(); } public function hasTenant(): bool { return $this->organization !== null; } }