* @todo Create collection cast to Collection of enums */ public array $preventAgainst; public static function group(): string { return 'prevention'; } public static function title(): string { return 'Prävention'; } /** * @inheritdoc */ public function viewData(): array { return []; } /** * @todo return int value here and handle this in vue with a number field that only expects integers * @return array */ public function toFrontend(): array { return [ ...$this->toArray(), 'weeks' => (string) $this->weeks, 'freshRememberInterval' => (string) $this->freshRememberInterval, ]; } }