src/CoreBundle/Entity/SequenceFormula.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'sequence_formula')]
#[ORM\Entity]
class SequenceFormula
{
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue]
protected ?int $id = null;
#[ORM\ManyToOne(targetEntity: SequenceMethod::class)]
#[ORM\JoinColumn(name: 'sequence_method_id', referencedColumnName: 'id')]
protected ?SequenceMethod $method = null;
#[ORM\ManyToOne(targetEntity: SequenceVariable::class)]
#[ORM\JoinColumn(name: 'sequence_variable_id', referencedColumnName: 'id')]
protected ?SequenceVariable $variable = null;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
public function getMethod(): ?SequenceMethod
{
return $this->method;
}
public function setMethod(?SequenceMethod $method): self
{
$this->method = $method;
return $this;
}
public function getVariable(): ?SequenceVariable
{
return $this->variable;
}
public function setVariable(?SequenceVariable $variable): self
{
$this->variable = $variable;
return $this;
}
}