<?php
namespace App\Entity;
use App\Repository\VariableValuesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=VariableValuesRepository::class)
*/
class VariableValues extends BaseEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Variable::class, inversedBy="variableValues")
* @ORM\JoinColumn(nullable=false)
*/
private $variable;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $value;
public function getId(): ?int
{
return $this->id;
}
public function getVariable(): ?Variable
{
return $this->variable;
}
public function setVariable(?Variable $variable): self
{
$this->variable = $variable;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): self
{
$this->value = $value;
return $this;
}
}