apiKey = $apiKey; } public function isValid(): bool { return $this->apiKey !== null && $this->apiKey->isValid(); } public function apiKey(): ?ApiKey { return $this->apiKey; } }