Blacklist
extends Blacklist
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_blacklists'
- #[TableAlias]
- 'blacklist'
Table of Contents
Properties
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.
- getId() : int|null
- getType() : BlacklistType|null
- Returns the type as an enum (null when `typeId` matches no value).
- getTypeId() : int
- getValue() : string
- isPersisted() : bool
- setId() : $this
- setType() : $this
- setTypeId() : $this
- setValue() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'blacklist_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$typeId
protected
int
$typeId
= 1
Attributes
- #[Column]
- $name: 'type_id'
- $type: 'smallint'
- $options: ['unsigned' => true]
$value
protected
string
$value
= ''
Attributes
- #[Column]
- $name: 'value'
- $type: 'text'
Methods
__construct()
public
__construct([int|null $id = null ][, string $value = '' ][, int $typeId = 1 ]) : mixed
Parameters
- $id : int|null = null
- $value : string = ''
- $typeId : int = 1
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>getId()
public
getId() : int|null
Return values
int|nullgetType()
Returns the type as an enum (null when `typeId` matches no value).
public
getType() : BlacklistType|null
Return values
BlacklistType|nullgetTypeId()
public
getTypeId() : int
Return values
intgetValue()
public
getValue() : string
Return values
stringisPersisted()
public
isPersisted() : bool
Return values
boolsetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetType()
public
setType(BlacklistType $type) : $this
Parameters
- $type : BlacklistType
Return values
$thissetTypeId()
public
setTypeId(int $typeId) : $this
Parameters
- $typeId : int
Return values
$thissetValue()
public
setValue(string $value) : $this
Parameters
- $value : string
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>