src/Entity/VehicleUserAlert.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\User;
  4. use App\Entity\Vehicle;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use FOS\UserBundle\Entity\User as BaseUser;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. /**
  11.  * @ORM\Entity(repositoryClass="App\Repository\VehicleUserAlertRepository")
  12.  *
  13.  * @ORM\Table(name="vehicle_user_alert")
  14.  */
  15. class VehicleUserAlert
  16. {
  17.     /**
  18.      * @ORM\Id
  19.      *
  20.      * @ORM\Column(type="bigint")
  21.      *
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     protected $id;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="User")
  27.      *
  28.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
  29.      */
  30.     protected $user;
  31.     /**
  32.      * Related vehicle.
  33.      *
  34.      * @ORM\ManyToOne(targetEntity="App\Entity\Vehicle")
  35.      *
  36.      * @ORM\JoinColumn(name="vehicle_id", referencedColumnName="id", onDelete="CASCADE")
  37.      */
  38.     protected $vehicle;
  39.     /**
  40.      * @Gedmo\Timestampable(on="update")
  41.      *
  42.      * @ORM\Column(type="datetime", name="sended_at")
  43.      */
  44.     protected $sendedAt;
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getUser()
  50.     {
  51.         return $this->user;
  52.     }
  53.     public function setUser($user): void
  54.     {
  55.         $this->user $user;
  56.     }
  57.     public function getVehicle()
  58.     {
  59.         return $this->vehicle;
  60.     }
  61.     public function setVehicle(Vehicle $vehicle): void
  62.     {
  63.         $this->vehicle $vehicle;
  64.     }
  65.     public function getSendedAt()
  66.     {
  67.         return $this->sendedAt;
  68.     }
  69.     public function setSendedAt(\DateTime $sendedAt): void
  70.     {
  71.         $this->sendedAt $sendedAt;
  72.     }
  73. }