WorkSheet
extends WorkSheet
in package
`WorkList` is a job (historical name); `WorkSheet` is a work sheet inside a job.
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_company_work_sheets'
- #[TableAlias]
- 'workSheet'
Table of Contents
Properties
- $bill : bool
- $closedDatetime : DateTime|null
- $deleted : bool
- $id : int|null
- $insertDatetime : DateTime
- $invoicerInvoiceId : int|null
- $name : string
- $order : int
- $state : WorkSheetState
- $stateBeforeClosing : WorkSheetState|null
- $updateDatetime : DateTime|null
- $workListId : int
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.
- getBill() : bool
- getClosedDatetime() : DateTime|null
- getDeleted() : bool
- getId() : int|null
- getInsertDatetime() : DateTime
- getInvoicerInvoiceId() : int|null
- getName() : string
- getOrder() : int
- getState() : WorkSheetState
- getStateBeforeClosing() : WorkSheetState|null
- getUpdateDatetime() : DateTime|null
- getWorkListId() : int
- isBill() : bool
- isDeleted() : bool
- isPersisted() : bool
- setBill() : $this
- setClosedDatetime() : $this
- setDeleted() : $this
- setId() : $this
- setInsertDatetime() : $this
- setInvoicerInvoiceId() : $this
- setName() : $this
- setOrder() : $this
- setState() : $this
- setStateBeforeClosing() : $this
- setUpdateDatetime() : $this
- setWorkListId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$bill
protected
bool
$bill
= false
Attributes
- #[Column]
- $name: 'bill'
- $type: 'boolean'
$closedDatetime
protected
DateTime|null
$closedDatetime
= null
Attributes
- #[Column]
- $name: 'closed_datetime'
- $type: 'datetime'
- $nullable: true
$deleted
protected
bool
$deleted
= false
Attributes
- #[Column]
- $name: 'deleted'
- $type: 'boolean'
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'work_sheet_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$insertDatetime
protected
DateTime
$insertDatetime
= new DateTime()
Attributes
- #[Column]
- $name: 'insert_datetime'
- $type: 'datetime'
$invoicerInvoiceId
protected
int|null
$invoicerInvoiceId
= null
Attributes
- #[Column]
- $name: 'invoicer_invoice_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$name
protected
string
$name
= ''
Attributes
- #[Column]
- $name: 'name'
- $type: 'string'
- $length: 255
$order
protected
int
$order
= 0
Attributes
- #[Column]
- $name: '`order`'
- $type: 'integer'
- $options: ['unsigned' => true, 'default' => 0]
$state
protected
WorkSheetState
$state
= WorkSheetState::Open
Attributes
- #[Column]
- $name: 'state'
- $type: 'string'
- $length: 16
- $enumType: WorkSheetState::class
$stateBeforeClosing
protected
WorkSheetState|null
$stateBeforeClosing
= null
Attributes
- #[Column]
- $name: 'state_before_closing'
- $type: 'string'
- $length: 16
- $enumType: WorkSheetState::class
- $nullable: true
$updateDatetime
protected
DateTime|null
$updateDatetime
= null
Attributes
- #[Column]
- $name: 'update_datetime'
- $type: 'datetime'
- $nullable: true
$workListId
protected
int
$workListId
= 0
Attributes
- #[Column]
- $name: 'work_list_id'
- $type: 'integer'
- $options: ['unsigned' => true]
Methods
__construct()
public
__construct([int|null $id = null ][, int $workListId = 0 ][, string $name = '' ][, WorkSheetState $state = WorkSheetState::Open ][, WorkSheetState|null $stateBeforeClosing = null ][, bool $bill = false ][, int $order = 0 ][, DateTime|null $closedDatetime = null ][, int|null $invoicerInvoiceId = null ][, DateTime $insertDatetime = new DateTime() ][, DateTime|null $updateDatetime = null ][, bool $deleted = false ]) : mixed
Parameters
- $id : int|null = null
- $workListId : int = 0
- $name : string = ''
- $state : WorkSheetState = WorkSheetState::Open
- $stateBeforeClosing : WorkSheetState|null = null
- $bill : bool = false
- $order : int = 0
- $closedDatetime : DateTime|null = null
- $invoicerInvoiceId : int|null = null
- $insertDatetime : DateTime = new DateTime()
- $updateDatetime : DateTime|null = null
- $deleted : bool = false
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>getBill()
public
getBill() : bool
Return values
boolgetClosedDatetime()
public
getClosedDatetime() : DateTime|null
Return values
DateTime|nullgetDeleted()
public
getDeleted() : bool
Return values
boolgetId()
public
getId() : int|null
Return values
int|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime
Return values
DateTimegetInvoicerInvoiceId()
public
getInvoicerInvoiceId() : int|null
Return values
int|nullgetName()
public
getName() : string
Return values
stringgetOrder()
public
getOrder() : int
Return values
intgetState()
public
getState() : WorkSheetState
Return values
WorkSheetStategetStateBeforeClosing()
public
getStateBeforeClosing() : WorkSheetState|null
Return values
WorkSheetState|nullgetUpdateDatetime()
public
getUpdateDatetime() : DateTime|null
Return values
DateTime|nullgetWorkListId()
public
getWorkListId() : int
Return values
intisBill()
public
isBill() : bool
Return values
boolisDeleted()
public
isDeleted() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolsetBill()
public
setBill(bool $bill) : $this
Parameters
- $bill : bool
Return values
$thissetClosedDatetime()
public
setClosedDatetime(DateTime|null $closedDatetime) : $this
Parameters
- $closedDatetime : DateTime|null
Return values
$thissetDeleted()
public
setDeleted(bool $deleted) : $this
Parameters
- $deleted : bool
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
$thissetInvoicerInvoiceId()
public
setInvoicerInvoiceId(int|null $invoicerInvoiceId) : $this
Parameters
- $invoicerInvoiceId : int|null
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetOrder()
public
setOrder(int $order) : $this
Parameters
- $order : int
Return values
$thissetState()
public
setState(WorkSheetState $state) : $this
Parameters
- $state : WorkSheetState
Return values
$thissetStateBeforeClosing()
public
setStateBeforeClosing(WorkSheetState|null $stateBeforeClosing) : $this
Parameters
- $stateBeforeClosing : WorkSheetState|null
Return values
$thissetUpdateDatetime()
public
setUpdateDatetime(DateTime|null $updateDatetime) : $this
Parameters
- $updateDatetime : DateTime|null
Return values
$thissetWorkListId()
public
setWorkListId(int $workListId) : $this
Parameters
- $workListId : int
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>