src/Entity/RouteArticle.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RouteArticleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass= RouteArticleRepository::class)
  8.  */
  9. class RouteArticle
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="text", nullable=true)
  19.      */
  20.     private $routeName;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=StateDeliveryOrder::class)
  23.      */
  24.     private $article;
  25.     /**
  26.      * @ORM\Column(type="text", nullable=true)
  27.      */
  28.     private $image;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $notification;
  33.     /**
  34.      * @ORM\Column(type="text", nullable=true)
  35.      */
  36.     private $coordonnee;
  37.     /**
  38.      * @ORM\Column(type="float", nullable=true)
  39.      * @Assert\Range(
  40.      *     min=-90,
  41.      *     max=90,
  42.      *     notInRangeMessage="La latitude doit ĂȘtre comprise entre {{ min }} et {{ max }}."
  43.      * )
  44.      */
  45.     private $latitude;
  46.     /**
  47.      * @ORM\Column(type="float", nullable=true)
  48.      * @Assert\Range(
  49.      *     min=-180,
  50.      *     max=180,
  51.      *     notInRangeMessage="La latitude doit ĂȘtre comprise entre {{ min }} et {{ max }}."
  52.      * )
  53.      */
  54.     private $longitude;
  55.     /**
  56.      * @ORM\Column(type="datetime")
  57.      */
  58.     private $dateDelivery;
  59.     /**
  60.      * @ORM\Column(type="boolean")
  61.      */
  62.     private $state false;
  63. public function getId(): ?int
  64. {
  65.     return $this->id;
  66. }
  67. public function getRouteName(): ?string
  68. {
  69.     return $this->routeName;
  70. }
  71. public function setRouteName(?string $routeName): self
  72. {
  73.     $this->routeName $routeName;
  74.     return $this;
  75. }
  76. public function getArticle(): ?StateDeliveryOrder
  77. {
  78.     return $this->article;
  79. }
  80. public function setArticle(?StateDeliveryOrder $article): self
  81. {
  82.     $this->article $article;
  83.     return $this;
  84. }
  85. public function getImage(): ?string
  86. {
  87.     return $this->image;
  88. }
  89. public function setImage(?string $image): self
  90. {
  91.     $this->image $image;
  92.     return $this;
  93. }
  94. public function getNotification(): ?string
  95. {
  96.     return $this->notification;
  97. }
  98. public function setNotification(?string $notification): self
  99. {
  100.     $this->notification $notification;
  101.     return $this;
  102. }
  103. public function getCoordonnee(): ?string
  104. {
  105.     return $this->coordonnee;
  106. }
  107. public function setCoordonnee(?string $coordonnee): self
  108. {
  109.     $this->coordonnee $coordonnee;
  110.     return $this;
  111. }
  112. public function getDateDelivery(): ?\DateTimeInterface
  113. {
  114.     return $this->dateDelivery;
  115. }
  116. public function setDateDelivery(\DateTimeInterface $dateDelivery): self
  117. {
  118.     $this->dateDelivery $dateDelivery;
  119.     return $this;
  120. }
  121. public function State(): ?bool
  122. {
  123.     return $this->state;
  124. }
  125. public function setState(?bool $state): self
  126. {
  127.     $this->state $state;
  128.     return $this;
  129. }
  130. public function getLatitude(): ?float
  131. {
  132.     return $this->latitude;
  133. }
  134. public function setLatitude(?float $latitude): self
  135. {
  136.     $this->latitude $latitude;
  137.     return $this;
  138. }
  139. public function getLongitude(): ?float
  140. {
  141.     return $this->longitude;
  142. }
  143. public function setLongitude(?float $longitude): self
  144. {
  145.     $this->longitude $longitude;
  146.     return $this;
  147. }
  148. }