|
- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use Doctrine\ORM\Mapping as ORM;
-
- /**
- * @ORM\MappedSuperclass
- */
- abstract class UserPointSale
- {
- /**
- * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface", inversedBy="userPointSales")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $user;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\PointSaleInterface", inversedBy="userPointSales")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $pointSale;
-
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- protected $comment;
-
- public function getUser(): ?User
- {
- return $this->user;
- }
-
- public function setUser(?User $user): self
- {
- $this->user = $user;
-
- return $this;
- }
-
- public function getPointSale(): ?PointSale
- {
- return $this->pointSale;
- }
-
- public function setPointSale(?PointSale $pointSale): self
- {
- $this->pointSale = $pointSale;
-
- return $this;
- }
-
- public function getComment(): ?string
- {
- return $this->comment;
- }
-
- public function setComment(?string $comment): self
- {
- $this->comment = $comment;
-
- return $this;
- }
- }
|