Skip to main content

Stored_Shift


Stored_Shift

Properties​

created​

public string $created

history​

public array $history

id​

public int $id

identityNumber​

public string $identityNumber

name​

public string $name

startDate​

public string $startDate

status​

public \Onslip360\API\Shift\Status $status

updated​

public string $updated

user​

public int $user

deleted​

public string|null $deleted

endDate​

public string|null $endDate

labels​

public array|null $labels

tags​

public array|null $tags

updatedBy​

public int|null $updatedBy

updatedFrom​

public int|null $updatedFrom

Methods​

__construct​

public __construct(string $created, \Onslip360\API\ShiftHistory[] $history, int $id, string $identityNumber, string $name, string $startDate, \Onslip360\API\Shift\Status $status, string $updated, int $user, string|null $deleted = null, string|null $endDate = null, int[]|null $labels = null, string[]|null $tags = null, int|null $updatedBy = null, int|null $updatedFrom = null): mixed

Parameters:

ParameterTypeDescription
$createdstring
$history\Onslip360\API\ShiftHistory[]
$idint
$identityNumberstring
$namestring
$startDatestring
$status\Onslip360\API\Shift\Status
$updatedstring
$userint
$deletedstring|null
$endDatestring|null
$labelsint[]|null
$tagsstring[]|null
$updatedByint|null
$updatedFromint|null

Inherited methods​

getExtended​

public getExtended(string $name): string|null|\Onslip360\Nil

Parameters:

ParameterTypeDescription
$namestring

setExtended​

public setExtended(string $name, string|null|\Onslip360\Nil $value): static

Parameters:

ParameterTypeDescription
$namestring
$valuestring|null|\Onslip360\Nil

fromJson​

public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring|array|\JsonSerializable|\stdClass

fromJsonArray​

public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring[]|array[]|\JsonSerializable[]|\stdClass[]

jsonSerialize​

public jsonSerialize(): array|object


Automatically generated on 2026-06-17