options['active'] ?? false; } /** * @return bool */ public function isEnabled(): bool { return $this->options['enabled'] ?? false; } /** * @return array */ public function getOptions(): array { return $this->options; } /** * @return int|null */ public function getNumber(): ?int { return $this->options['number'] ?? null; } /** * @return string */ public function getLabel(): string { return $this->options['label'] ?? (string)$this->getNumber(); } /** * @return string|null */ public function getUrl(): ?string { return $this->options['route'] ? (string)$this->options['route']->getUri() : null; } /** * @param array $options */ protected function setOptions(array $options): void { $this->options = $options; } }