AdvertReport
extends AdvertReport
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_bazaar_advert_reports'
- #[TableAlias]
- 'advertReport'
Table of Contents
Properties
- $advertId : int
- $id : int|null
- $insertDatetime : DateTime
- $insertIp : string|null
- $solved : bool
- $text : string|null
- $userId : int|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAdvertId() : int
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getId() : int|null
- getInsertDatetime() : DateTime
- getInsertIp() : string|null
- getOwnerUserId() : int|null
- Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
- getSolved() : bool
- getText() : string|null
- getUserId() : int|null
- isPersisted() : bool
- isSolved() : bool
- setAdvertId() : $this
- setId() : $this
- setInsertDatetime() : $this
- setInsertIp() : $this
- setSolved() : $this
- setText() : $this
- setUserId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$advertId
protected
int
$advertId
= 0
Attributes
- #[Column]
- $name: 'cms_mod_bazaar_adverts_advert_id'
- $type: 'integer'
- $options: ['unsigned' => true]
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'advert_report_id'
- $type: 'bigint'
- $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
$solved
protected
bool
$solved
= false
Attributes
- #[Column]
- $name: 'solved'
- $type: 'boolean'
$text
protected
string|null
$text
= null
Attributes
- #[Column]
- $name: 'text'
- $type: 'text'
- $nullable: true
$userId
protected
int|null
$userId
= null
Attributes
- #[Column]
- $name: 'cms_system_users_user_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
Methods
__construct()
public
__construct([int|null $id = null ][, int $advertId = 0 ][, int|null $userId = null ][, string|null $insertIp = null ][, string|null $text = null ][, bool $solved = false ][, DateTime $insertDatetime = new DateTime() ]) : mixed
Parameters
- $id : int|null = null
- $advertId : int = 0
- $userId : int|null = null
- $insertIp : string|null = null
- $text : string|null = null
- $solved : bool = false
- $insertDatetime : DateTime = new DateTime()
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAdvertId()
public
getAdvertId() : int
Return values
intgetAllTraits()
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|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime
Return values
DateTimegetInsertIp()
public
getInsertIp() : string|null
Return values
string|nullgetOwnerUserId()
Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
public
getOwnerUserId() : int|null
Return values
int|nullgetSolved()
public
getSolved() : bool
Return values
boolgetText()
public
getText() : string|null
Return values
string|nullgetUserId()
public
getUserId() : int|null
Return values
int|nullisPersisted()
public
isPersisted() : bool
Return values
boolisSolved()
public
isSolved() : bool
Return values
boolsetAdvertId()
public
setAdvertId(int $advertId) : $this
Parameters
- $advertId : int
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInsertDatetime()
public
setInsertDatetime(DateTime $insertDatetime) : $this
Parameters
- $insertDatetime : DateTime
Return values
$thissetInsertIp()
public
setInsertIp(string|null $insertIp) : $this
Parameters
- $insertIp : string|null
Return values
$thissetSolved()
public
setSolved(bool $solved) : $this
Parameters
- $solved : bool
Return values
$thissetText()
public
setText(string|null $text) : $this
Parameters
- $text : string|null
Return values
$thissetUserId()
public
setUserId(int|null $userId) : $this
Parameters
- $userId : int|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>