PaymentItem
extends PaymentItem
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_discussion_payment_items'
- #[TableAlias]
- 'paymentItem'
Table of Contents
Properties
- $active : bool
- $categoryId : int|null
- $id : int|null
- $insertDatetime : DateTime
- $insertIp : string|null
- $messageId : int|null
- $paymentId : int|null
- $tariffId : int|null
- $userId : int|null
- $validityDatetime : DateTime|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getActive() : bool
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getCategoryId() : int|null
- getId() : int|null
- getInsertDatetime() : DateTime
- getInsertIp() : string|null
- getMessageId() : int|null
- getPaymentId() : int|null
- getTariffId() : int|null
- getUserId() : int|null
- getValidityDatetime() : DateTime|null
- isActive() : bool
- isPersisted() : bool
- setActive() : $this
- setCategoryId() : $this
- setId() : $this
- setInsertDatetime() : $this
- setInsertIp() : $this
- setMessageId() : $this
- setPaymentId() : $this
- setTariffId() : $this
- setUserId() : $this
- setValidityDatetime() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$active
protected
bool
$active
= true
Attributes
- #[Column]
- $name: 'active'
- $type: 'boolean'
$categoryId
protected
int|null
$categoryId
= null
Attributes
- #[Column]
- $name: 'cms_mod_discussion_categories_category_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'payment_item_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$insertDatetime
protected
DateTime
$insertDatetime
= new DateTime()
Attributes
- #[Column]
- $name: 'insert_datetime'
- $type: 'datetime'
$insertIp
protected
string|null
$insertIp
= null
Attributes
- #[Column]
- $name: 'insert_ip'
- $type: 'string'
- $length: 45
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$messageId
protected
int|null
$messageId
= null
Attributes
- #[Column]
- $name: 'cms_mod_discussion_messages_message_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$paymentId
protected
int|null
$paymentId
= null
Attributes
- #[Column]
- $name: 'cms_system_payments_payment_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$tariffId
protected
int|null
$tariffId
= null
Attributes
- #[Column]
- $name: 'cms_mod_discussion_message_tariffs_message_tariff_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$userId
protected
int|null
$userId
= null
Attributes
- #[Column]
- $name: 'cms_system_users_user_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$validityDatetime
protected
DateTime|null
$validityDatetime
= null
Attributes
- #[Column]
- $name: 'validity_datetime'
- $type: 'datetime'
- $nullable: true
Methods
__construct()
public
__construct([int|null $id = null ][, int|null $messageId = null ][, int|null $tariffId = null ][, int|null $categoryId = null ][, int|null $paymentId = null ][, int|null $userId = null ][, DateTime|null $validityDatetime = null ][, DateTime $insertDatetime = new DateTime() ][, string|null $insertIp = null ][, bool $active = true ]) : mixed
Parameters
- $id : int|null = null
- $messageId : int|null = null
- $tariffId : int|null = null
- $categoryId : int|null = null
- $paymentId : int|null = null
- $userId : int|null = null
- $validityDatetime : DateTime|null = null
- $insertDatetime : DateTime = new DateTime()
- $insertIp : string|null = null
- $active : bool = true
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getActive()
public
getActive() : 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>getCategoryId()
public
getCategoryId() : int|null
Return values
int|nullgetId()
public
getId() : int|null
Return values
int|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime
Return values
DateTimegetInsertIp()
public
getInsertIp() : string|null
Return values
string|nullgetMessageId()
public
getMessageId() : int|null
Return values
int|nullgetPaymentId()
public
getPaymentId() : int|null
Return values
int|nullgetTariffId()
public
getTariffId() : int|null
Return values
int|nullgetUserId()
public
getUserId() : int|null
Return values
int|nullgetValidityDatetime()
public
getValidityDatetime() : DateTime|null
Return values
DateTime|nullisActive()
public
isActive() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolsetActive()
public
setActive(bool $active) : $this
Parameters
- $active : bool
Return values
$thissetCategoryId()
public
setCategoryId(int|null $categoryId) : $this
Parameters
- $categoryId : int|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInsertDatetime()
public
setInsertDatetime(DateTime $dt) : $this
Parameters
- $dt : DateTime
Return values
$thissetInsertIp()
public
setInsertIp(string|null $ip) : $this
Parameters
- $ip : string|null
Return values
$thissetMessageId()
public
setMessageId(int|null $messageId) : $this
Parameters
- $messageId : int|null
Return values
$thissetPaymentId()
public
setPaymentId(int|null $paymentId) : $this
Parameters
- $paymentId : int|null
Return values
$thissetTariffId()
public
setTariffId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetUserId()
public
setUserId(int|null $userId) : $this
Parameters
- $userId : int|null
Return values
$thissetValidityDatetime()
public
setValidityDatetime(DateTime|null $dt) : $this
Parameters
- $dt : DateTime|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>