src/Entity/Statistics/BarometerStatistic.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Statistics;
  3. use App\Entity\AbstractBase;
  4. use App\Entity\Garages\Garage;
  5. use App\Entity\Traits\GarageTrait;
  6. use App\Entity\User;
  7. use App\Repository\Statistics\BarometerStatisticRepository;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. /**
  11.  * @ORM\Table(name="vulco_barometer_statistic")
  12.  *
  13.  * @ORM\Entity(repositoryClass=BarometerStatisticRepository::class)
  14.  *
  15.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  16.  */
  17. class BarometerStatistic extends AbstractBase
  18. {
  19.     use GarageTrait;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Garages\Garage")
  22.      *
  23.      * @ORM\JoinColumn(name="garage_id", referencedColumnName="id")
  24.      */
  25.     private Garage $garage;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  28.      *
  29.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  30.      */
  31.     private User $user;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=false)
  34.      */
  35.     private \DateTimeInterface $importedOn;
  36.     public function getUser(): User
  37.     {
  38.         return $this->user;
  39.     }
  40.     public function setUser(User $user): self
  41.     {
  42.         $this->user $user;
  43.         return $this;
  44.     }
  45.     public function getImportedOn(): \DateTimeInterface
  46.     {
  47.         return $this->importedOn;
  48.     }
  49.     public function setImportedOn(\DateTimeInterface $importedOn): self
  50.     {
  51.         $this->importedOn $importedOn;
  52.         return $this;
  53.     }
  54. }