src/Entity/VariableValues.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VariableValuesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=VariableValuesRepository::class)
  7.  */
  8. class VariableValues extends BaseEntity
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Variable::class, inversedBy="variableValues")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $variable;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $value;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getVariable(): ?Variable
  30.     {
  31.         return $this->variable;
  32.     }
  33.     public function setVariable(?Variable $variable): self
  34.     {
  35.         $this->variable $variable;
  36.         return $this;
  37.     }
  38.     public function getValue(): ?string
  39.     {
  40.         return $this->value;
  41.     }
  42.     public function setValue(?string $value): self
  43.     {
  44.         $this->value $value;
  45.         return $this;
  46.     }
  47. }