ParameterRuleConditionValue
extends ParameterRuleConditionValue
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_bazaar_parameter_rule_condition_values'
- #[TableAlias]
- 'parameterRuleConditionValue'
Table of Contents
Properties
- $condition : TCondition|null
- $conditionKey : int
- $id : int|null
- $optionId : int|null
- $ruleId : int|null
- $value : string|null
- $option : Parameter|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getCondition() : TCondition|null
- getConditionKey() : int
- getId() : int|null
- getOption() : Parameter|null
- getOptionId() : int|null
- getRuleId() : int|null
- getValue() : string|null
- isPersisted() : bool
- setCondition() : $this
- setConditionKey() : $this
- setId() : $this
- setOption() : self
- setOptionId() : $this
- setRuleId() : $this
- setValue() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$condition
protected
TCondition|null
$condition
= null
Attributes
- #[EntityOf]
- \App\UI\Front\Bazaar\Models\Entities\ParameterRuleCondition::class
- #[JoinColumn]
- $name: 'cms_mod_bazaar_parameter_rules_parameter_rule_id'
- $referencedColumnName: 'cms_mod_bazaar_parameter_rules_parameter_rule_id'
- $onDelete: 'CASCADE'
- #[JoinColumn]
- $name: 'cms_mod_bazaar_parameter_rule_conditions_key'
- $referencedColumnName: 'key'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\Bazaar\Models\Entities\ParameterRuleCondition::class
- $inversedBy: 'valuesCollection'
- #[ParentRef]
$conditionKey
protected
int
$conditionKey
= 0
Attributes
- #[Column]
- $name: 'cms_mod_bazaar_parameter_rule_conditions_key'
- $type: 'integer'
- $insertable: false
- $updatable: false
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'parameter_rule_condition_value_id'
- $type: 'bigint'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$optionId
protected
int|null
$optionId
= null
Attributes
- #[Column]
- $name: 'option_id'
- $type: 'integer'
- $nullable: true
- $insertable: false
- $updatable: false
- $options: ['unsigned' => true]
$ruleId
protected
int|null
$ruleId
= null
Attributes
- #[Column]
- $name: 'cms_mod_bazaar_parameter_rules_parameter_rule_id'
- $type: 'bigint'
- $insertable: false
- $updatable: false
- $options: ['unsigned' => true]
$value
protected
string|null
$value
= null
Attributes
- #[Column]
- $name: 'value'
- $type: 'string'
- $length: 45
- $nullable: true
$option
private
Parameter|null
$option
= null
Attributes
- #[EntityOf]
- \App\UI\Front\Bazaar\Models\Entities\Parameter::class
- #[JoinColumn]
- $name: 'option_id'
- $referencedColumnName: 'parameter_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\Bazaar\Models\Entities\Parameter::class
Methods
__construct()
public
__construct([int|null $id = null ][, int|null $ruleId = null ][, int $conditionKey = 0 ][, int|null $optionId = null ][, string|null $value = null ][, mixed $condition = null ]) : mixed
Parameters
- $id : int|null = null
- $ruleId : int|null = null
- $conditionKey : int = 0
- $optionId : int|null = null
- $value : string|null = null
- $condition : mixed = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getCondition()
public
getCondition() : TCondition|null
Return values
TCondition|nullgetConditionKey()
public
getConditionKey() : int
Return values
intgetId()
public
getId() : int|null
Return values
int|nullgetOption()
public
getOption() : Parameter|null
Return values
Parameter|nullgetOptionId()
public
getOptionId() : int|null
Return values
int|nullgetRuleId()
public
getRuleId() : int|null
Return values
int|nullgetValue()
public
getValue() : string|null
Return values
string|nullisPersisted()
public
isPersisted() : bool
Return values
boolsetCondition()
public
setCondition(TCondition|null $condition) : $this
Parameters
- $condition : TCondition|null
Return values
$thissetConditionKey()
public
setConditionKey(int $conditionKey) : $this
Parameters
- $conditionKey : int
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetOption()
public
setOption(Parameter|null $option) : self
Parameters
- $option : Parameter|null
Return values
selfsetOptionId()
public
setOptionId(int|null $optionId) : $this
Parameters
- $optionId : int|null
Return values
$thissetRuleId()
public
setRuleId(int|null $ruleId) : $this
Parameters
- $ruleId : int|null
Return values
$thissetValue()
public
setValue(string|null $value) : $this
Parameters
- $value : string|null
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>