src/Entity/VariableValue.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VariableValueRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassVariableValueRepository::class)]
  6. class VariableValue
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255nullabletrue)]
  13.     private ?string $value_textcourt null;
  14.     #[ORM\Column(type'integer'options: ['default' => 1])]
  15.     private int $etat 1;
  16.     #[ORM\Column(type'bigint'nullabletrue)]
  17.     private ?string $value_int null;
  18.     #[ORM\Column(type'decimal'precision18scale8nullabletrue)]
  19.     private ?string $value_decimal null;
  20.     #[ORM\Column(type'text'nullabletrue)]
  21.     private ?string $value_textlong null;
  22.     #[ORM\Column(type'datetimetz'nullabletrue)]
  23.     private ?\DateTimeInterface $value_datetime null;
  24.     #[ORM\ManyToOne(inversedBy'variableValues')]
  25.     private ?Contact $contact null;
  26.     #[ORM\ManyToOne(inversedBy'variableValues')]
  27.     private ?Objet $objet null;
  28.     #[ORM\ManyToOne(inversedBy'variableValues')]
  29.     private ?Variable $variable null;
  30.     #[ORM\ManyToOne(inversedBy'variableValues')]
  31.     private ?User $userr null;
  32.     #[ORM\ManyToOne(inversedBy'variableValues')]
  33.     private ?Document $document null;
  34.     #[ORM\ManyToOne]
  35.     private ?ContactType $contactType null;
  36.     #[ORM\ManyToOne]
  37.     private ?ObjetType $objetType null;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getValueTextcourt(): ?string
  43.     {
  44.         return $this->value_textcourt;
  45.     }
  46.     public function setValueTextcourt(?string $value_textcourt): static
  47.     {
  48.         $this->value_textcourt $value_textcourt;
  49.         return $this;
  50.     }
  51.     public function getContact(): ?Contact
  52.     {
  53.         return $this->contact;
  54.     }
  55.     public function setContact(?Contact $contact): static
  56.     {
  57.         $this->contact $contact;
  58.         return $this;
  59.     }
  60.     public function getObjet(): ?Objet
  61.     {
  62.         return $this->objet;
  63.     }
  64.     public function setObjet(?Objet $objet): static
  65.     {
  66.         $this->objet $objet;
  67.         return $this;
  68.     }
  69.     public function getVariable(): ?Variable
  70.     {
  71.         return $this->variable;
  72.     }
  73.     public function setVariable(?Variable $variable): static
  74.     {
  75.         $this->variable $variable;
  76.         return $this;
  77.     }
  78.     public function getUserr(): ?User
  79.     {
  80.         return $this->userr;
  81.     }
  82.     public function setUserr(?User $userr): static
  83.     {
  84.         $this->userr $userr;
  85.         return $this;
  86.     }
  87.     public function getDocument(): ?Document
  88.     {
  89.         return $this->document;
  90.     }
  91.     public function setDocument(?Document $document): static
  92.     {
  93.         $this->document $document;
  94.         return $this;
  95.     }
  96.     public function getEtat(): int
  97.     {
  98.         return $this->etat;
  99.     }
  100.     public function setEtat(int $etat): static
  101.     {
  102.         $this->etat $etat;
  103.         return $this;
  104.     }
  105.     public function getValueInt(): ?string
  106.     {
  107.         return $this->value_int;
  108.     }
  109.     public function setValueInt(?string $value_int): static
  110.     {
  111.         $this->value_int $value_int;
  112.         return $this;
  113.     }
  114.     public function getValueDecimal(): ?string
  115.     {
  116.         return $this->value_decimal;
  117.     }
  118.     public function setValueDecimal(?string $value_decimal): static
  119.     {
  120.         $this->value_decimal $value_decimal;
  121.         return $this;
  122.     }
  123.     public function getValueTextlong(): ?string
  124.     {
  125.         return $this->value_textlong;
  126.     }
  127.     public function setValueTextlong(?string $value_textlong): static
  128.     {
  129.         $this->value_textlong $value_textlong;
  130.         return $this;
  131.     }
  132.     public function getValueDatetime(): ?\DateTimeInterface
  133.     {
  134.         return $this->value_datetime;
  135.     }
  136.     public function setValueDatetime(?\DateTimeInterface $value_datetime): static
  137.     {
  138.         $this->value_datetime $value_datetime;
  139.         return $this;
  140.     }
  141.     public function getContactType(): ?ContactType
  142.     {
  143.         return $this->contactType;
  144.     }
  145.     public function setContactType(?ContactType $contactType): static
  146.     {
  147.         $this->contactType $contactType;
  148.         return $this;
  149.     }
  150.     public function getObjetType(): ?ObjetType
  151.     {
  152.         return $this->objetType;
  153.     }
  154.     public function setObjetType(?ObjetType $objetType): static
  155.     {
  156.         $this->objetType $objetType;
  157.         return $this;
  158.     }
  159. }