Shift
Shift
- Full name:
\Onslip360\API\Shift
- Parent class:
\Onslip360\Onslip360Object
Properties
history
public array $history
identityNumber
public string $identityNumber
name
public string $name
startDate
public string $startDate
status
public \Onslip360\API\Shift\Status $status
user
public int $user
created
public string|null $created
deleted
public string|null $deleted
endDate
public string|null $endDate
id
public int|null $id
labels
public array|null $labels
tags
public array|null $tags
updated
public string|null $updated
updatedBy
public int|null $updatedBy
updatedFrom
public int|null $updatedFrom
Methods
__construct
public __construct(\Onslip360\API\ShiftHistory[] $history, string $identityNumber, string $name, string $startDate, \Onslip360\API\Shift\Status $status, int $user, string|null $created = null, string|null $deleted = null, string|null $endDate = null, int|null $id = null, int[]|null $labels = null, string[]|null $tags = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$history | \Onslip360\API\ShiftHistory[] | |
$identityNumber | string | |
$name | string | |
$startDate | string | |
$status | \Onslip360\API\Shift\Status | |
$user | int | |
$created | string|null | |
$deleted | string|null | |
$endDate | string|null | |
$id | int|null | |
$labels | int[]|null | |
$tags | string[]|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05