Google Cloud Chronicle Client - Class TimeOff (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class TimeOff.

System record for leave/time-off from a Human Capital Management (HCM) system.

Generated from protobuf message google.backstory.TimeOff

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ interval Google\Type\Interval

Interval duration of the leave.

↳ description string

Description of the leave if available (e.g. 'Vacation').

getInterval

Interval duration of the leave.

Returns
Type Description
Google\Type\Interval|null

hasInterval

clearInterval

setInterval

Interval duration of the leave.

Parameter
Name Description
var Google\Type\Interval
Returns
Type Description
$this

getDescription

Description of the leave if available (e.g. 'Vacation').

Returns
Type Description
string

setDescription

Description of the leave if available (e.g. 'Vacation').

Parameter
Name Description
var string
Returns
Type Description
$this