|
| | __construct () |
| |
| | 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.
|
| |
| | validate () |
| | Validate the item data.
|
| |
◆ __construct()
◆ getItem()
Get the item data as an array.
- Returns
- array Returns the item data.
◆ getTotalPriceWithTax()
Get the total price with tax of the item.
- Returns
- float Returns the total price with tax.
◆ setAutoShipping()
| setAutoShipping |
( |
bool |
$autoShipping | ) |
|
Set whether the item has auto shipping.
- Parameters
-
| bool | $autoShipping | Whether the item has auto shipping. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setBrand()
| setBrand |
( |
string |
$brand | ) |
|
Set the brand of the item.
- Parameters
-
| string | $brand | The brand of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setCategory()
| setCategory |
( |
Category |
$category | ) |
|
Set the category of the item.
- Parameters
-
| Category | $category | The category of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setDescription()
| setDescription |
( |
string |
$description | ) |
|
Set the description of the item.
- Parameters
-
| string | $brand | The brand of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setImageUrl()
| setImageUrl |
( |
string |
$imageUrl | ) |
|
Set the image URL of the item.
- Parameters
-
| string | $imageUrl | The image URL of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setMPN()
Set the MPN (Manufacturer Part Number) of the item.
- Parameters
-
| string | $mpn | The MPN of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setName()
Set the name of the item.
- Parameters
-
| string | $name | The name of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setReference()
| setReference |
( |
int |
$reference | ) |
|
Set the reference of the item.
- Parameters
-
| int | $reference | The reference of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setTotalDiscount()
| setTotalDiscount |
( |
float |
$totalDiscount | ) |
|
Set the total discount of the item.
- Parameters
-
| float | $totalDiscount | The total discount of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setTotalPriceWithTax()
| setTotalPriceWithTax |
( |
float |
$totalPrice | ) |
|
Set the total price with tax of the item.
- Parameters
-
| float | $totalPrice | The total price with tax of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setType()
Set the type of the item.
- Parameters
-
| string | $type | The type of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setUnitPriceWithTax()
| setUnitPriceWithTax |
( |
float |
$unitPrice | ) |
|
Set the unit price with tax of the item.
- Parameters
-
| float | $unitPrice | The unit price with tax of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setUnits()
Set the number of units of the item.
- Parameters
-
| int | $units | The number of units of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ setURL()
Set the URL of the item.
- Parameters
-
| string | $url | The URL of the item. |
- Returns
- self Returns the instance of the class for method chaining.
◆ validate()
◆ $item
The documentation for this class was generated from the following file: