|
|
|
|
|
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
use Doctrine\Common\Collections\Collection; |
|
|
use Doctrine\Common\Collections\Collection; |
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
|
use Gedmo\Mapping\Annotation as Gedmo; |
|
|
use FOS\UserBundle\Model\User as UserModelFOS; |
|
|
use FOS\UserBundle\Model\User as UserModelFOS; |
|
|
use Lc\ShopBundle\Context\MerchantInterface; |
|
|
use Lc\ShopBundle\Context\MerchantInterface; |
|
|
use Lc\ShopBundle\Context\TicketInterface; |
|
|
use Lc\ShopBundle\Context\TicketInterface; |
|
|
|
|
|
|
|
|
*/ |
|
|
*/ |
|
|
protected $tickets; |
|
|
protected $tickets; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @ORM\Column(type="datetime") |
|
|
|
|
|
* @Gedmo\Timestampable(on="create") |
|
|
|
|
|
*/ |
|
|
|
|
|
protected $createdAt; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @ORM\Column(type="datetime") |
|
|
|
|
|
* @Gedmo\Timestampable(on="update") |
|
|
|
|
|
*/ |
|
|
|
|
|
protected $updatedAt; |
|
|
|
|
|
|
|
|
public function __construct() |
|
|
public function __construct() |
|
|
{ |
|
|
{ |
|
|
parent::__construct(); |
|
|
parent::__construct(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @return Collection|ShopOrder[] |
|
|
|
|
|
|
|
|
* @return Collection|OrderShop[] |
|
|
*/ |
|
|
*/ |
|
|
public function getOrders(): Collection |
|
|
public function getOrders(): Collection |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
|
} |
|
|
|
|
|
public function getCreatedAt(): ?\DateTimeInterface |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->createdAt; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function setCreatedAt(\DateTimeInterface $createdAt): self |
|
|
|
|
|
{ |
|
|
|
|
|
$this->createdAt = $createdAt; |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getUpdatedAt(): ?\DateTimeInterface |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->updatedAt; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function setUpdatedAt(\DateTimeInterface $updatedAt): self |
|
|
|
|
|
{ |
|
|
|
|
|
$this->updatedAt = $updatedAt; |
|
|
|
|
|
|
|
|
return $this; |
|
|
return $this; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |