src/CoreBundle/Entity/Vehicles/VehicleView.php line 7

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. use DateTime;
  4. class VehicleView
  5. {
  6.     /**
  7.      * @var int
  8.      */
  9.     private $id;
  10.     /**
  11.      * @var string
  12.      */
  13.     private $ip;
  14.     /**
  15.      * @var Vehicle|null
  16.      */
  17.     private $vehicle;
  18.     /**
  19.      * @var boolean
  20.      */
  21.     private $isSend;
  22.     /**
  23.      * @var DateTime
  24.      */
  25.     private $viewAt;
  26.     public function getId(): int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function setIp(string $ip): self
  31.     {
  32.         $this->ip $ip;
  33.         return $this;
  34.     }
  35.     public function getIp(): string
  36.     {
  37.         return $this->ip;
  38.     }
  39.     public function getVehicle(): ?Vehicle
  40.     {
  41.         return $this->vehicle;
  42.     }
  43.     public function setVehicle(?Vehicle $vehicle): self
  44.     {
  45.         $this->vehicle $vehicle;
  46.         return $this;
  47.     }
  48.     public function setViewAt(DateTime $viewAt): self
  49.     {
  50.         $this->viewAt $viewAt;
  51.         return $this;
  52.     }
  53.     public function getViewAt(): DateTime
  54.     {
  55.         return $this->viewAt;
  56.     }
  57.     public function getIsSend(): bool
  58.     {
  59.         return $this->isSend;
  60.     }
  61.     public function setIsSend(bool $isSend): VehicleView
  62.     {
  63.         $this->isSend $isSend;
  64.         return $this;
  65.     }
  66. }