Files
kupshop/bundles/KupShop/UserBundle/UserDispatcher.php
2025-08-02 16:30:27 +02:00

43 lines
704 B
PHP

<?php
namespace KupShop\EETBundle;
use KupShop\UserBundle\Entity\User;
class UserDispatcher
{
/**
* @var int
*/
private $id;
public function getId(): int
{
return $this->id;
}
/**
* UserDispatcher constructor.
*
* @param int $id
*/
public function __construct($id)
{
$this->id = $id;
}
/**
* @return \User
*/
public function getUser()
{
$user = new User();
// FIXME TADY VŮBEC NEVÍM CO S TÍM, JAK INICIALIZOVAT ENTITU ABY NAČETLA SPRÁVNÝHO USERA PPODLE ID??
$user->setId($this->getId());
// $this->production = $production;
return $this;
}
}