ShiftDto extends AbstractDto
FinalYes
Table of Contents
Properties
- $address : string|null
- $cancelReason : string|null
- $dateCancel : DateTime|null
- $dateCreate : DateTime|null
- $dialogId : string|null
- $geoImageUrl : string|null
- $id : int
- $imageFileId : int|null
- $location : string|null
- $message : string|null
- $shiftDate : Date|null
- $skipCounter : bool
- $skipOptions : bool
- $skipTm : bool
- $status : int|null
- $timezoneOffset : int|null
- $userId : int
Methods
- __call() : mixed
- createFromArray() : static
- getPrimaryName() : string
- setAddress() : self
- setCancelReason() : self
- setDateCancel() : self
- setDateCreate() : self
- setDialogId() : self
- setGeoImageUrl() : self
- setId() : self
- setLocation() : self
- setMessage() : self
- setShiftDate() : self
- setSkipCounter() : self
- setSkipOptions() : self
- setSkipTm() : self
- setStatus() : self
- setTimezoneOffset() : self
- setUserId() : self
- toArray() : array<string|int, mixed>
- validateAdd() : void
- validateDelete() : void
- validatePrimary() : void
- validateUpdate() : void
Properties
$address
public
string|null
$address
= null
Attributes
- #[Nullable]
$cancelReason
public
string|null
$cancelReason
= null
Attributes
- #[Nullable]
$dateCancel
public
DateTime|null
$dateCancel
= null
Attributes
- #[Nullable]
$dateCreate
public
DateTime|null
$dateCreate
= null
Attributes
- #[Nullable]
$dialogId
public
string|null
$dialogId
= null
Attributes
- #[Nullable]
$geoImageUrl
public
string|null
$geoImageUrl
= null
Attributes
- #[Nullable]
$id
public
int
$id
= 0
Attributes
- #[Min]
- 1
- #[Primary]
$imageFileId
public
int|null
$imageFileId
= null
Attributes
- #[Nullable]
$location
public
string|null
$location
= null
Attributes
- #[Nullable]
$message
public
string|null
$message
= null
Attributes
- #[Nullable]
$shiftDate
public
Date|null
$shiftDate
= null
Attributes
- #[NotEmpty]
$skipCounter
public
bool
$skipCounter
= false
Attributes
- #[Skip]
$skipOptions
public
bool
$skipOptions
= false
Attributes
- #[Skip]
$skipTm
public
bool
$skipTm
= false
Attributes
- #[Skip]
$status
public
int|null
$status
= null
Attributes
- #[Enum]
- \Bitrix\StaffTrack\Dictionary\Status::class
$timezoneOffset
public
int|null
$timezoneOffset
= null
Attributes
- #[NotNull]
$userId
public
int
$userId
Attributes
- #[Min]
- 1
- #[NotEmpty]
Methods
__call()
public
__call(string $name, array<string|int, mixed> $args) : mixed
Parameters
- $name : string
- $args : array<string|int, mixed>
Tags
createFromArray()
public
static createFromArray(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
Return values
staticgetPrimaryName()
public
getPrimaryName() : string
Tags
Return values
stringsetAddress()
public
setAddress(string $address) : self
Parameters
- $address : string
Return values
selfsetCancelReason()
public
setCancelReason(string $cancelReason) : self
Parameters
- $cancelReason : string
Return values
selfsetDateCancel()
public
setDateCancel(DateTime $dateCancel) : self
Parameters
- $dateCancel : DateTime
Return values
selfsetDateCreate()
public
setDateCreate(DateTime $dateCreate) : self
Parameters
- $dateCreate : DateTime
Return values
selfsetDialogId()
public
setDialogId(int $dialogId) : self
Parameters
- $dialogId : int
Return values
selfsetGeoImageUrl()
public
setGeoImageUrl(string $geoImageUrl) : self
Parameters
- $geoImageUrl : string
Return values
selfsetId()
public
setId(int $id) : self
Parameters
- $id : int
Return values
selfsetLocation()
public
setLocation(string $location) : self
Parameters
- $location : string
Return values
selfsetMessage()
public
setMessage(string $message) : self
Parameters
- $message : string
Return values
selfsetShiftDate()
public
setShiftDate(Date $shiftDate) : self
Parameters
- $shiftDate : Date
Return values
selfsetSkipCounter()
public
setSkipCounter(bool $skipCounter) : self
Parameters
- $skipCounter : bool
Return values
selfsetSkipOptions()
public
setSkipOptions(bool $skipOptions) : self
Parameters
- $skipOptions : bool
Return values
selfsetSkipTm()
public
setSkipTm(bool $skipTm) : self
Parameters
- $skipTm : bool
Return values
selfsetStatus()
public
setStatus(int $status) : self
Parameters
- $status : int
Return values
selfsetTimezoneOffset()
public
setTimezoneOffset(int $timezoneOffset) : self
Parameters
- $timezoneOffset : int
Return values
selfsetUserId()
public
setUserId(int $userId) : self
Parameters
- $userId : int
Return values
selftoArray()
public
toArray([bool $withDefault = true ]) : array<string|int, mixed>
Parameters
- $withDefault : bool = true
Return values
array<string|int, mixed>validateAdd()
public
validateAdd() : void
Tags
validateDelete()
public
validateDelete() : void
Tags
validatePrimary()
public
validatePrimary() : void
Tags
validateUpdate()
public
validateUpdate() : void