Update defaults of MatchStrategy entity
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Entity\Money;
|
||||
use App\Repository\Matchfunding\MatchStrategyRepository;
|
||||
use Brick\Math\BigNumber;
|
||||
use Brick\Math\BigRational;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: MatchStrategyRepository::class)]
|
||||
@@ -20,17 +21,20 @@ class MatchStrategy
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?MatchCall $call = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
#[ORM\Column(type: Types::ARRAY)]
|
||||
private array $ruleClasses = [];
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $formulaName = null;
|
||||
|
||||
#[ORM\Embedded(class: Money::class)]
|
||||
private ?object $limit = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $factor = null;
|
||||
|
||||
#[ORM\Column(enumType: MatchAgainst::class)]
|
||||
private ?MatchAgainst $against = null;
|
||||
private ?MatchAgainst $against = MatchAgainst::DEFAULT;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
@@ -49,6 +53,18 @@ class MatchStrategy
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRuleClasses(): array
|
||||
{
|
||||
return $this->ruleClasses;
|
||||
}
|
||||
|
||||
public function setRuleClasses(array $ruleClasses): static
|
||||
{
|
||||
$this->ruleClasses = $ruleClasses;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFormulaName(): ?string
|
||||
{
|
||||
return $this->formulaName;
|
||||
|
||||
Reference in New Issue
Block a user