src/Entity/CircuitSite.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CircuitSiteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CircuitSiteRepository::class)
  8.  */
  9. class CircuitSite
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Circuit::class, inversedBy="circuitSites")
  19.      */
  20.     private $circuit;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Site::class, inversedBy="circuitSites")
  23.      */
  24.     private $site;
  25.     /**
  26.      * @ORM\Column(type="datetime_immutable")
  27.      * @Gedmo\Timestampable(on="create")
  28.      */
  29.     private $created_at;
  30.     /**
  31.      * @ORM\Column(type="datetime_immutable")
  32.      * @Gedmo\Timestampable(on="update")
  33.      */
  34.     private $updated_at;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getCircuit(): ?Circuit
  40.     {
  41.         return $this->circuit;
  42.     }
  43.     public function setCircuit(?Circuit $circuit): self
  44.     {
  45.         $this->circuit $circuit;
  46.         return $this;
  47.     }
  48.     public function getSite(): ?Site
  49.     {
  50.         return $this->site;
  51.     }
  52.     public function setSite(?Site $site): self
  53.     {
  54.         $this->site $site;
  55.         return $this;
  56.     }
  57.     public function getCreatedAt(): ?\DateTimeImmutable
  58.     {
  59.         return $this->created_at;
  60.     }
  61.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  62.     {
  63.         $this->created_at $created_at;
  64.         return $this;
  65.     }
  66.     public function getUpdatedAt(): ?\DateTimeImmutable
  67.     {
  68.         return $this->updated_at;
  69.     }
  70.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  71.     {
  72.         $this->updated_at $updated_at;
  73.         return $this;
  74.     }
  75. }