'encrypted', 'type' => ProviderType::class, ]; } public function networks(): HasMany { return $this->hasMany(Network::class); } public function servers(): HasMany { return $this->hasMany(Server::class); } public function service(): ?ServerProviderService { return match ($this->type) { ProviderType::HETZNER => new HetznerService($this), default => null, }; } }