diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index 86fd004..89b34f4 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -4,21 +4,23 @@ namespace App\Services; use App\Models\Direction; use Illuminate\Support\Facades\URL; +use PhpParser\Node\Expr\Array_; class DirectonHtmlBuilder { - private Direction $direction; + private array $direction; public function __construct($direction) { $this->direction = $direction; } public function getHTML() { - // phpcs:disable + $direction = $this->direction; $fon_3 = URL::to('img/front-page/bakalavr-special/fon3_blok.png'); - return "
{$direction->description}
+{$direction['description']}