state, [self::OK, self::PRICE_CHANGED, self::TERMS_CHANGED], true); } /** Verhindert den Abschluss, bis der Käufer die Position selbst entfernt oder den Inhaber wechselt. */ public function blocks(): bool { return in_array($this->state, [self::WITHDRAWN, self::WRONG_HOLDER], true); } public function title(): string { $products = app(ProductOptions::class); if ($this->version !== null) { $article = $products->articleOf($this->version); if ($article !== null) { return $products->articleTitle($article); } $bundle = $products->bundleOf($this->version); if ($bundle !== null && $this->version->lines->count() === 1) { return (string) $bundle->name; } } $composition = $this->offer->composition; return $composition !== null ? (string) ($composition->display_title ?: $composition->designation) : (string) $this->offer->name; } }