Files
kupshop/bundles/KupShop/SellerBundle/View/ListDetailView.php
2025-08-02 16:30:27 +02:00

47 lines
889 B
PHP

<?php
namespace KupShop\SellerBundle\View;
use KupShop\KupShopBundle\Views\View;
use KupShop\SellerBundle\Utils\SellerUtil;
class ListDetailView extends View
{
protected $template = 'seller/seller.list-detail.tpl';
/** @var int ID of seller */
protected $id_seller;
/** @var SellerUtil */
private $sellerUtil;
/**
* @required
*/
public function setSellerUtil(SellerUtil $sellerUtil): void
{
$this->sellerUtil = $sellerUtil;
}
public function getBodyVariables()
{
$body = parent::getBodyVariables();
$body['dealer'] = $this->sellerUtil->getSeller((int) $this->id_seller);
return $body;
}
/**
* @param int $id_seller
*
* @return ListDetailView
*/
public function setIdSeller($id_seller)
{
$this->id_seller = $id_seller;
return $this;
}
}