AdvertParameterRel
extends BaseEntity
in package
implements
ParameterRelInterface
AbstractYes
Tags
Attributes
- #[MappedSuperclass]
- #[PersonalDataOwner]
- 'advert'
- $via: 'insertUserId'
- #[TableAlias]
- $alias: 'advertParameterRel'
Table of Contents
Interfaces
- ParameterRelInterface
- Link between a parameter value and a host entity (currently an advert, possibly others later).
Properties
- $advert : TAdvert|null
- $parameter : TParameter|null
- $parameterId : int|null
- $value : string|null
- $value2 : string|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAdvert() : TAdvert|null
- 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
- getValue() : string|null
- getValue2() : string|null
- setAdvert() : $this
- setParameter() : $this
- setParameterId() : $this
- setValue() : $this
- setValue2() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$advert
protected
TAdvert|null
$advert
= null
$parameter
protected
TParameter|null
$parameter
= null
$parameterId
protected
int|null
$parameterId
= null
Attributes
- #[Column]
- $name: 'cms_mod_bazaar_parameters_parameter_id'
- $type: 'integer'
- $insertable: false
- $updatable: false
- $nullable: true
$value
protected
string|null
$value
= null
Attributes
- #[Column]
- $name: 'value'
- $type: 'text'
- $length: 16777215
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Email
- $detect: true
$value2
protected
string|null
$value2
= null
Attributes
- #[Column]
- $name: 'value2'
- $type: 'text'
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Email
- $detect: true
Methods
__construct()
public
__construct([mixed $advert = null ][, mixed $parameter = null ][, string|null $value = null ][, string|null $value2 = null ][, int|null $parameterId = null ]) : mixed
Parameters
- $advert : mixed = null
- $parameter : mixed = null
- $value : string|null = null
- $value2 : string|null = null
- $parameterId : int|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAdvert()
public
getAdvert() : TAdvert|null
Return values
TAdvert|nullgetAllTraits()
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|nullgetValue()
public
getValue() : string|null
Return values
string|nullgetValue2()
public
getValue2() : string|null
Return values
string|nullsetAdvert()
public
setAdvert(TAdvert|null $advert) : $this
Parameters
- $advert : TAdvert|null
Return values
$thissetParameter()
public
setParameter(TParameter|null $parameter) : $this
Parameters
- $parameter : TParameter|null
Return values
$thissetParameterId()
public
setParameterId(int|null $parameterId) : $this
Parameters
- $parameterId : int|null
Return values
$thissetValue()
public
setValue(string|null $value) : $this
Parameters
- $value : string|null
Return values
$thissetValue2()
public
setValue2(string|null $value2) : $this
Parameters
- $value2 : 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>