src/Entity/SaleOrderParticipant.php line 13

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\SaleOrderParticipantRepository;
  4.     use App\Traits\DateTrait;
  5.     use DateTimeInterface;
  6.     use Doctrine\ORM\Mapping as ORM;
  7.     /**
  8.      * @ORM\Entity(repositoryClass=SaleOrderParticipantRepository::class)
  9.      */
  10.     class SaleOrderParticipant
  11.     {
  12.         /**
  13.          * @ORM\Id
  14.          * @ORM\GeneratedValue
  15.          * @ORM\Column(type="integer")
  16.          */
  17.         private $id;
  18.         /**
  19.          * @ORM\Column(type="string", length=255)
  20.          */
  21.         private $lastName;
  22.         /**
  23.          * @ORM\Column(type="string", length=255)
  24.          */
  25.         private $firstName;
  26.         /**
  27.          * @ORM\Column(type="string", length=1)
  28.          */
  29.         private $typeParticipant;
  30.         /**
  31.          * @ORM\ManyToOne(targetEntity=SaleOrderItem::class, inversedBy="participants")
  32.          * @ORM\JoinColumn(nullable=false)
  33.          */
  34.         private $saleOrderItem;
  35.         /**
  36.          * @ORM\Column(type="date", nullable=true)
  37.          */
  38.         private $birthDate;
  39.         //@TODO pas link a la bdd
  40.         private $saleOrder;
  41.         use DateTrait;
  42.         public function getId(): ?int
  43.         {
  44.             return $this->id;
  45.         }
  46.         public function getLastName(): ?string
  47.         {
  48.             return $this->lastName;
  49.         }
  50.         public function setLastNamestring $lastName ): self
  51.         {
  52.             $this->lastName $lastName;
  53.             return $this;
  54.         }
  55.         public function getFirstName(): ?string
  56.         {
  57.             return $this->firstName;
  58.         }
  59.         public function setFirstNamestring $firstName ): self
  60.         {
  61.             $this->firstName $firstName;
  62.             return $this;
  63.         }
  64.         public function getTypeParticipant(): ?string
  65.         {
  66.             return $this->typeParticipant;
  67.         }
  68.         public function setTypeParticipantstring $typeParticipant ): self
  69.         {
  70.             $this->typeParticipant $typeParticipant;
  71.             return $this;
  72.         }
  73.         public function getBirthDate(): ?DateTimeInterface
  74.         {
  75.             return $this->birthDate;
  76.         }
  77.         public function setBirthDate( ?DateTimeInterface $birthDate ): self
  78.         {
  79.             $this->birthDate $birthDate;
  80.             return $this;
  81.         }
  82.         public function getSaleOrderItem(): ?SaleOrderItem
  83.         {
  84.             return $this->saleOrderItem;
  85.         }
  86.         public function setSaleOrderItem( ?SaleOrderItem $saleOrderItem ): self
  87.         {
  88.             $this->saleOrderItem $saleOrderItem;
  89.             return $this;
  90.         }
  91.     }