<?php
namespace App\Entity;
use App\Repository\EnqueteEntrepriseSectionChildValueRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EnqueteEntrepriseSectionChildValueRepository::class)
*/
class EnqueteEntrepriseSectionChildValue
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $value;
/**
* @ORM\ManyToOne(targetEntity=EnqueteEntrepriseSectionChild::class, inversedBy="enqueteEntrepriseSectionChildValues")
* @ORM\JoinColumn(nullable=false)
*/
private $enqueteEntrepriseSectionChild;
/**
* @ORM\ManyToOne(targetEntity=EnqueteEntreprise::class, inversedBy="enqueteEntrepriseSectionChildValue")
* @ORM\JoinColumn(nullable=false)
*/
private $enqueteEntreprise;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $createdAt;
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getValue(): ?int
{
return $this->value;
}
public function setValue(int $value): self
{
$this->value = $value;
return $this;
}
public function getEnqueteEntrepriseSectionChild(): ?EnqueteEntrepriseSectionChild
{
return $this->enqueteEntrepriseSectionChild;
}
public function setEnqueteEntrepriseSectionChild(?EnqueteEntrepriseSectionChild $enqueteEntrepriseSectionChild): self
{
$this->enqueteEntrepriseSectionChild = $enqueteEntrepriseSectionChild;
return $this;
}
public function getEnqueteEntreprise(): ?EnqueteEntreprise
{
return $this->enqueteEntreprise;
}
public function setEnqueteEntreprise(?EnqueteEntreprise $enqueteEntreprise): self
{
$this->enqueteEntreprise = $enqueteEntreprise;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}