|
| | __construct () |
| |
| | setStartDate (mixed $startDate) |
| | Set the start date of the service item.
|
| |
| | setEndDate (mixed $endDate) |
| | Set the end date of the service item.
|
| |
| | isValidDateTime (mixed $value) |
| | Check if a value is a valid date and time in the specified format.
|
| |
| | validate () |
| | Validate the service item data.
|
| |
| | setName (string $name) |
| | Set the name of the item.
|
| |
| | setType (string $type) |
| | Set the type of the item.
|
| |
| | setCategory (Category $category) |
| | Set the category of the item.
|
| |
| | setBrand (string $brand) |
| | Set the brand of the item.
|
| |
| | setDescription (string $description) |
| | Set the description of the item.
|
| |
| | setMPN (string $mpn) |
| | Set the MPN (Manufacturer Part Number) of the item.
|
| |
| | setImageUrl (string $imageUrl) |
| | Set the image URL of the item.
|
| |
| | setURL (string $url) |
| | Set the URL of the item.
|
| |
| | setReference (int $reference) |
| | Set the reference of the item.
|
| |
| | setTotalDiscount (float $totalDiscount) |
| | Set the total discount of the item.
|
| |
| | setUnitPriceWithTax (float $unitPrice) |
| | Set the unit price with tax of the item.
|
| |
| | setUnits (int $units) |
| | Set the number of units of the item.
|
| |
| | setTotalPriceWithTax (float $totalPrice) |
| | Set the total price with tax of the item.
|
| |
| | setAutoShipping (bool $autoShipping) |
| | Set whether the item has auto shipping.
|
| |
| | getItem () |
| | Get the item data as an array.
|
| |
| | getTotalPriceWithTax () |
| | Get the total price with tax of the item.
|
| |
◆ __construct()
◆ isValidDateTime()
| isValidDateTime |
( |
mixed |
$value | ) |
|
Check if a value is a valid date and time in the specified format.
- Parameters
-
| mixed | $value | The value to check. |
- Returns
- bool Returns true if the value is a valid date and time in the specified format, false otherwise.
◆ setEndDate()
| setEndDate |
( |
mixed |
$endDate | ) |
|
Set the end date of the service item.
- Parameters
-
| mixed | $endDate | The end date of the service item in YYYY-MM-DDTHH:mm:ss+HH:mm format. |
- Returns
- self Returns the instance of the class for method chaining.
- Exceptions
-
| InvalidFieldException | if the provided end date format is invalid. |
◆ setStartDate()
| setStartDate |
( |
mixed |
$startDate | ) |
|
Set the start date of the service item.
- Parameters
-
| mixed | $startDate | The start date of the service item in YYYY-MM-DDTHH:mm:ss+HH:mm format. |
- Returns
- self Returns the instance of the class for method chaining.
- Exceptions
-
| InvalidFieldException | if the provided start date format is invalid. |
◆ validate()
Validate the service item data.
- Returns
- void
- Exceptions
-
| InvalidFieldException | if any required fields are missing. |
Reimplemented from Item.
The documentation for this class was generated from the following file: