<?php
namespace App\Entity;
use App\Repository\RouteArticleRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass= RouteArticleRepository::class)
*/
class RouteArticle
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $routeName;
/**
* @ORM\ManyToOne(targetEntity=StateDeliveryOrder::class)
*/
private $article;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $image;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $notification;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $coordonnee;
/**
* @ORM\Column(type="float", nullable=true)
* @Assert\Range(
* min=-90,
* max=90,
* notInRangeMessage="La latitude doit ĂȘtre comprise entre {{ min }} et {{ max }}."
* )
*/
private $latitude;
/**
* @ORM\Column(type="float", nullable=true)
* @Assert\Range(
* min=-180,
* max=180,
* notInRangeMessage="La latitude doit ĂȘtre comprise entre {{ min }} et {{ max }}."
* )
*/
private $longitude;
/**
* @ORM\Column(type="datetime")
*/
private $dateDelivery;
/**
* @ORM\Column(type="boolean")
*/
private $state = false;
public function getId(): ?int
{
return $this->id;
}
public function getRouteName(): ?string
{
return $this->routeName;
}
public function setRouteName(?string $routeName): self
{
$this->routeName = $routeName;
return $this;
}
public function getArticle(): ?StateDeliveryOrder
{
return $this->article;
}
public function setArticle(?StateDeliveryOrder $article): self
{
$this->article = $article;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getNotification(): ?string
{
return $this->notification;
}
public function setNotification(?string $notification): self
{
$this->notification = $notification;
return $this;
}
public function getCoordonnee(): ?string
{
return $this->coordonnee;
}
public function setCoordonnee(?string $coordonnee): self
{
$this->coordonnee = $coordonnee;
return $this;
}
public function getDateDelivery(): ?\DateTimeInterface
{
return $this->dateDelivery;
}
public function setDateDelivery(\DateTimeInterface $dateDelivery): self
{
$this->dateDelivery = $dateDelivery;
return $this;
}
public function State(): ?bool
{
return $this->state;
}
public function setState(?bool $state): self
{
$this->state = $state;
return $this;
}
public function getLatitude(): ?float
{
return $this->latitude;
}
public function setLatitude(?float $latitude): self
{
$this->latitude = $latitude;
return $this;
}
public function getLongitude(): ?float
{
return $this->longitude;
}
public function setLongitude(?float $longitude): self
{
$this->longitude = $longitude;
return $this;
}
}