'boolean', ]; } /** * Altbestand: Programmseite, der eine Option mit mehreren Positionen früher von Hand zugeordnet wurde. Neue Optionen * haben genau eine Position; ihre Produktseite ergibt sich aus ihr (Artikel- oder Paketseite) und wird nicht zugeordnet. */ public function composition(): BelongsTo { return $this->belongsTo(Composition::class); } /** Bezeichnung der Option auf der Produktseite. */ public function optionName(): string { return filled($this->option_label) ? (string) $this->option_label : (string) $this->name; } public function versions(): HasMany { return $this->hasMany(OfferVersion::class); } }