TariffText
extends TariffText
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_user_tariff_texts'
- #[TableAlias]
- 'userTariffText'
Table of Contents
Properties
- $activeTranslation : bool
- $description : string
- $languageId : int|null
- $name : string|null
- $parent : mixed
- $title : string
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getActiveTranslation() : bool
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getDescription() : string
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getName() : string|null
- getParent() : object|null
- getTitle() : string
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setDescription() : $this
- setLanguageId() : $this
- setName() : $this
- setParent() : static
- setTitle() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$activeTranslation
protected
bool
$activeTranslation
= true
Attributes
- #[Column]
- $type: "boolean"
- $name: "active_translation"
- $options: ["default" => 1]
$description
protected
string
$description
= ''
Attributes
- #[Column]
- $type: "text"
- $name: "description"
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $type: "integer"
- $name: "cms_system_languages_language_id"
- #[Id]
- #[Identity]
$name
protected
string|null
$name
= null
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $name: "name"
- $nullable: true
$parent
protected
mixed
$parent
= null
Attributes
- #[EntityOf]
- \App\UI\Front\System\Models\Entities\Tariff::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_system_user_tariffs_user_tariff_id'
- $referencedColumnName: 'user_tariff_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\System\Models\Entities\Tariff::class
- $inversedBy: 'translations'
$title
protected
string
$title
= ''
Attributes
- #[Column]
- $type: "string"
- $length: 255
- $name: "title"
Methods
__construct()
public
__construct([int|null $languageId = null ][, string|null $name = null ][, string $title = '' ][, string $description = '' ][, bool $activeTranslation = true ]) : mixed
Parameters
- $languageId : int|null = null
- $name : string|null = null
- $title : string = ''
- $description : string = ''
- $activeTranslation : bool = true
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getActiveTranslation()
public
getActiveTranslation() : bool
Return values
boolgetAllTraits()
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>getDescription()
public
getDescription() : string
Return values
stringgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullgetParent()
public
getParent() : object|null
Return values
object|nullgetTitle()
public
getTitle() : string
Return values
stringisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetDescription()
public
setDescription(string $description) : $this
Parameters
- $description : string
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetName()
public
setName(string|null $name) : $this
Parameters
- $name : string|null
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticsetTitle()
public
setTitle(string $title) : $this
Parameters
- $title : 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>