src/Entity/EnqueteEntrepriseSectionChildValue.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EnqueteEntrepriseSectionChildValueRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EnqueteEntrepriseSectionChildValueRepository::class)
  7.  */
  8. class EnqueteEntrepriseSectionChildValue
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $value;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=EnqueteEntrepriseSectionChild::class, inversedBy="enqueteEntrepriseSectionChildValues")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $enqueteEntrepriseSectionChild;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=EnqueteEntreprise::class, inversedBy="enqueteEntrepriseSectionChildValue")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $enqueteEntreprise;
  30.     /**
  31.      * @ORM\Column(type="datetime_immutable")
  32.      */
  33.     private $createdAt;
  34.     public function __construct()
  35.     {
  36.         $this->createdAt = new \DateTimeImmutable();
  37.     }
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getValue(): ?int
  43.     {
  44.         return $this->value;
  45.     }
  46.     public function setValue(int $value): self
  47.     {
  48.         $this->value $value;
  49.         return $this;
  50.     }
  51.     public function getEnqueteEntrepriseSectionChild(): ?EnqueteEntrepriseSectionChild
  52.     {
  53.         return $this->enqueteEntrepriseSectionChild;
  54.     }
  55.     public function setEnqueteEntrepriseSectionChild(?EnqueteEntrepriseSectionChild $enqueteEntrepriseSectionChild): self
  56.     {
  57.         $this->enqueteEntrepriseSectionChild $enqueteEntrepriseSectionChild;
  58.         return $this;
  59.     }
  60.     public function getEnqueteEntreprise(): ?EnqueteEntreprise
  61.     {
  62.         return $this->enqueteEntreprise;
  63.     }
  64.     public function setEnqueteEntreprise(?EnqueteEntreprise $enqueteEntreprise): self
  65.     {
  66.         $this->enqueteEntreprise $enqueteEntreprise;
  67.         return $this;
  68.     }
  69.     public function getCreatedAt(): ?\DateTimeImmutable
  70.     {
  71.         return $this->createdAt;
  72.     }
  73.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  74.     {
  75.         $this->createdAt $createdAt;
  76.         return $this;
  77.     }
  78. }