- <?php
- namespace App\Entity;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Criteria;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
-  * @ORM\Entity(repositoryClass="App\Repository\RMSSaleEventRepository")
-  *
-  * @ORM\Table(name="rms_sale_event")
-  */
- class RMSSaleEvent
- {
-     /**
-      * @ORM\Id
-      *
-      * @ORM\Column(type="string")
-      */
-     protected $id;
-     /**
-      * @param \DateTime $startDate
-      * @param \DateTime $endDate
-      */
-     public function __construct($saleReference, /**
-      * @ORM\ManyToOne(targetEntity="App\Entity\ExternalSale", cascade={"remove"})
-      */
-         private $sale, /**
-      * @ORM\Column(type="datetime", nullable=false)
-      */
-         protected $startDate, /**
-      * @ORM\Column(type="datetime", nullable=false)
-      */
-         protected $endDate)
-     {
-         $this->id = $saleReference;
-     }
-     public function getId()
-     {
-         return $this->id;
-     }
-     public function setId($id): void
-     {
-         $this->id = $id;
-     }
-     public function getStartDate(): \DateTime
-     {
-         return $this->startDate;
-     }
-     public function setStartDate(\DateTime $startDate): void
-     {
-         $this->startDate = $startDate;
-     }
-     public function getEndDate(): \DateTime
-     {
-         return $this->endDate;
-     }
-     public function setEndDate(\DateTime $endDate): void
-     {
-         $this->endDate = $endDate;
-     }
-     public function getSale(): ExternalSale
-     {
-         return $this->sale;
-     }
-     public function setSale($sale): void
-     {
-         $this->sale = $sale;
-     }
- }
-