src/Entity/Distance.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use ApiPlatform\Core\Annotation\ApiResource;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. use App\Entity\Intervention;
  8. use App\Entity\User;
  9. /**
  10.  *
  11.  * Represente le planning des médécins probablement.
  12.  * @ORM\Table()
  13.  * @ORM\Entity()
  14.  *
  15.  */
  16. class Distance
  17. {
  18.     /**
  19.      * @var integer $id
  20.      *
  21.      * @ORM\Id
  22.      * @ORM\Column(type="integer")
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      *
  25.      * @Groups({"read"})
  26.      */
  27.     private $id;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="origin", type="string", length=1000)
  32.      *
  33.      */
  34.     private $origin;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="destination", type="string", length=1000)
  39.      *
  40.      */
  41.     private $destination;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="value", type="float")
  46.      *
  47.      */
  48.     private $value;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="time", type="float")
  53.      *
  54.      */
  55.     private $time;
  56.     /**
  57.      * @return int
  58.      */
  59.     public function getId()
  60.     {
  61.         return $this->id;
  62.     }
  63.     /**
  64.      * @param int $id
  65.      */
  66.     public function setId($id)
  67.     {
  68.         $this->id $id;
  69.     }
  70.     /**
  71.      * @return string
  72.      */
  73.     public function getOrigin()
  74.     {
  75.         return $this->origin;
  76.     }
  77.     /**
  78.      * @param string $origin
  79.      */
  80.     public function setOrigin($origin)
  81.     {
  82.         $this->origin $origin;
  83.     }
  84.     /**
  85.      * @return string
  86.      */
  87.     public function getDestination()
  88.     {
  89.         return $this->destination;
  90.     }
  91.     /**
  92.      * @param string $destination
  93.      */
  94.     public function setDestination($destination)
  95.     {
  96.         $this->destination $destination;
  97.     }
  98.     /**
  99.      * @return string
  100.      */
  101.     public function getValue()
  102.     {
  103.         return $this->value;
  104.     }
  105.     /**
  106.      * @param string $value
  107.      */
  108.     public function setValue($value)
  109.     {
  110.         $this->value $value;
  111.     }
  112.     /**
  113.      * @return string
  114.      */
  115.     public function getTime()
  116.     {
  117.         return $this->time;
  118.     }
  119.     /**
  120.      * @param string $time
  121.      */
  122.     public function setTime($time)
  123.     {
  124.         $this->time $time;
  125.     }
  126. }