ParameterRuleSource
extends ParameterRuleSource
in package
Source parameter of a parameter rule condition, with a derived identity.
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_bazaar_parameter_rule_sources'
- #[TableAlias]
- 'parameterRuleSource'
Table of Contents
Properties
- $parameter : TParameter|null
- $parameterId : int|null
- $rule : TRule|null
- $ruleId : int|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.
- getParameter() : TParameter|null
- getParameterId() : int|null
- getRule() : TRule|null
- getRuleId() : int|null
- setParameter() : $this
- setRule() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$parameter
protected
TParameter|null
$parameter
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Bazaar\Models\Entities\Parameter::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_bazaar_parameters_parameter_id'
- $referencedColumnName: 'parameter_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Bazaar\Models\Entities\Parameter::class
$parameterId
protected
int|null
$parameterId
= null
Attributes
- #[Column]
- $name: 'cms_mod_bazaar_parameters_parameter_id'
- $type: 'integer'
- $insertable: false
- $updatable: false
- $options: ['unsigned' => true]
$rule
protected
TRule|null
$rule
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Bazaar\Models\Entities\ParameterRule::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_bazaar_parameter_rules_parameter_rule_id'
- $referencedColumnName: 'parameter_rule_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Bazaar\Models\Entities\ParameterRule::class
- $inversedBy: 'sourcesCollection'
$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]
Methods
__construct()
public
__construct() : mixed
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>getParameter()
public
getParameter() : TParameter|null
Return values
TParameter|nullgetParameterId()
public
getParameterId() : int|null
Return values
int|nullgetRule()
public
getRule() : TRule|null
Return values
TRule|nullgetRuleId()
public
getRuleId() : int|null
Return values
int|nullsetParameter()
public
setParameter(TParameter|null $parameter) : $this
Parameters
- $parameter : TParameter|null
Return values
$thissetRule()
public
setRule(TRule|null $rule) : $this
Parameters
- $rule : TRule|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>