name = $configuration['name'] ?? $name; $this->enabled = $configuration['enabled'] ?? false; $this->host = $configuration['host'] ?? null; $this->port = $configuration['port'] ?? null; $this->driver = $configuration['driver'] ?? null; $this->priority = $configuration['priority'] ?? null; $this->username = $configuration['username'] ?? null; $this->password = $configuration['password'] ?? null; $this->database = $configuration['database'] ?? null; $this->reconnect_interval = $configuration['reconnect_interval'] ?? null; } /** * Returns the name of the cache server * * @return string */ public function getName(): ?string { return $this->name; } /** * Returns whether the cache server is enabled * * @return bool */ public function getEnabled(): bool { return $this->enabled ?? false; } /** * Returns the host of the cache server * * @return string|null */ public function getHost(): ?string { return $this->host; } /** * @return int|null */ public function getPort(): ?int { return $this->port; } /** * @return string|null */ public function getDriver(): ?string { return $this->driver; } /** * @return int|null */ public function getPriority(): ?int { return $this->priority; } /** * @return string|null */ public function getUsername(): ?string { return $this->username; } /** * @return string|null */ public function getPassword(): ?string { return $this->password; } /** * @return string|null */ public function getDatabase(): ?string { return $this->database; } /** * @return int|null */ public function getReconnectInterval(): ?int { return $this->reconnect_interval; } }