src/Entity/RuleCondition.php line 13
<?phpnamespace App\Entity;use App\Enum\RuleComponent;use App\Enum\RuleRelationalOperator;use App\Enum\RuleLogicalOperatorType;use App\Repository\RuleConditionRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: RuleConditionRepository::class)]class RuleCondition{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'ruleConditions')]#[ORM\JoinColumn(nullable: false)]private ?RuleVersion $ruleVersion = null;#[ORM\Column(length: 255, nullable: true)]private ?RuleComponent $componentName = null;#[ORM\Column(length: 255, nullable: true)]private ?string $componentValue = null;#[ORM\ManyToOne(inversedBy: 'ruleConditions', fetch: 'EAGER' )]private ?CreditType $creditType = null;#[ORM\ManyToOne(inversedBy: 'ruleConditions', fetch: 'EAGER')]private ?Position $position = null;#[ORM\ManyToOne(inversedBy: 'ruleConditions', fetch: 'EAGER')]private ?Formula $formula = null;#[ORM\Column(length: 255, nullable: true)]private ?RuleLogicalOperatorType $logicalOperatorType = null;#[ORM\Column(length: 255, nullable: true)]private ?RuleRelationalOperator $relationalOperator = null;#[ORM\ManyToOne(inversedBy: 'ruleConditions', fetch: 'EAGER')]private ?OrderType $orderType = null;#[ORM\ManyToOne(inversedBy: 'ruleConditions')]private ?User $User = null;public function getId(): ?int{return $this->id;}public function getRuleVersion(): ?RuleVersion{return $this->ruleVersion;}public function setRuleVersion(?RuleVersion $ruleVersion): self{$this->ruleVersion = $ruleVersion;return $this;}public function getComponentName(): ?RuleComponent{return $this->componentName;}public function setComponentName(?RuleComponent $componentName): self{$this->componentName = $componentName;return $this;}public function getComponentValue(): ?string{return $this->componentValue;}public function setComponentValue(?string $componentValue): self{$this->componentValue = $componentValue;return $this;}public function getCreditType(): ?CreditType{return $this->creditType;}public function setCreditType(?CreditType $creditType): self{$this->creditType = $creditType;return $this;}public function getPosition(): ?Position{return $this->position;}public function setPosition(?Position $position): self{$this->position = $position;return $this;}public function getFormula(): ?Formula{return $this->formula;}public function setFormula(?Formula $formula): self{$this->formula = $formula;return $this;}public function getLogicalOperatorType(): ?RuleLogicalOperatorType{return $this->logicalOperatorType;}public function setLogicalOperatorType(?RuleLogicalOperatorType $logicalOperatorType): self{$this->logicalOperatorType = $logicalOperatorType;return $this;}public function getRelationalOperator(): ?RuleRelationalOperator{return $this->relationalOperator;}public function setRelationalOperator(?RuleRelationalOperator $relationalOperator): self{$this->relationalOperator = $relationalOperator;return $this;}public function getOrderType(): ?OrderType{return $this->orderType;}public function setOrderType(?OrderType $orderType): static{$this->orderType = $orderType;return $this;}public function getUser(): ?User{return $this->User;}public function setUser(?User $User): static{$this->User = $User;return $this;}}