Commitment
in package
FinalYes
Fulfillment commitment.
Tags
Table of Contents
Properties
- $hours : int|null
- Maximum number of hours until the order should be fulfilled.
Methods
- __construct() : mixed
- Commitment constructor.
- getHours() : int|null
- Returns maximum number of hours until the order should be fulfilled.
- setHours() : $this
- Sets the maximum number of hours until the order should be fulfilled.
Properties
$hours
Maximum number of hours until the order should be fulfilled.
private
int|null
$hours
Set to null
when there is no commitment to fulfil the order within a particular time.
Methods
__construct()
Commitment constructor.
public
__construct(int|null $hours) : mixed
Parameters
- $hours : int|null
-
hours until order is to be fulfilled or
null
if no commitment
getHours()
Returns maximum number of hours until the order should be fulfilled.
public
getHours() : int|null
Return values
int|null —hours until order is to be fulfilled or null
if no commitment
setHours()
Sets the maximum number of hours until the order should be fulfilled.
private
setHours(int|null $hours) : $this
Parameters
- $hours : int|null
-
hours until order is to be fulfilled or
null
if no commitment