src/Entity/VariableValue.php line 12

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