DHL-PHP-SDK  v0.4
A wrapper for the DHL-XML-API Version 2
Product Class Reference

Public Member Functions

 __construct ($type)
 
 __destruct ()
 
 getType ()
 
 getName ()
 
 setName ($name)
 
 isAustria ()
 
 setAustria ($austria)
 
 getMinLength ()
 
 setMinLength ($minLength)
 
 getMaxLength ()
 
 setMaxLength ($maxLength)
 
 getMinWidth ()
 
 setMinWidth ($minWidth)
 
 getMaxWidth ()
 
 setMaxWidth ($maxWidth)
 
 getMinHeight ()
 
 setMinHeight ($minHeight)
 
 getMaxHeight ()
 
 setMaxHeight ($maxHeight)
 
 getMaxWeight ()
 
 setMaxWeight ($maxWeight)
 
 getServices ()
 
 setServices ($services)
 
 addService ($service)
 
 hasService ($service)
 

Detailed Description

Definition at line 19 of file Product.php.

Constructor & Destructor Documentation

§ __construct()

__construct (   $type)

Product constructor.

Parameters
string$type- Product-Type

Definition at line 102 of file Product.php.

§ __destruct()

__destruct ( )

Clears Memory

Definition at line 109 of file Product.php.

Member Function Documentation

§ addService()

addService (   $service)

Adds a Service

Parameters
string$service- Service to add

Definition at line 326 of file Product.php.

§ getMaxHeight()

getMaxHeight ( )

Get the Max-Height

Returns
float|int - Max-Height

Definition at line 272 of file Product.php.

§ getMaxLength()

getMaxLength ( )

Get the Max-Length

Returns
float|int - Max-Length

Definition at line 200 of file Product.php.

§ getMaxWeight()

getMaxWeight ( )

Get the Max-Weight

Returns
float|int - Max-Weight

Definition at line 290 of file Product.php.

§ getMaxWidth()

getMaxWidth ( )

Get the Max-Width

Returns
float|int - Max-Width

Definition at line 236 of file Product.php.

§ getMinHeight()

getMinHeight ( )

Get the Min-Height

Returns
float|int - Min-Height

Definition at line 254 of file Product.php.

§ getMinLength()

getMinLength ( )

Get the Min-Length

Returns
float|int - Min-Length

Definition at line 182 of file Product.php.

§ getMinWidth()

getMinWidth ( )

Get the Min-Width

Returns
float|int - Min-Width

Definition at line 218 of file Product.php.

§ getName()

getName ( )

Get the Name

Returns
string - Name

Definition at line 146 of file Product.php.

§ getServices()

getServices ( )

Get the Services

Returns
string[] - Services

Definition at line 308 of file Product.php.

§ getType()

getType ( )

Get the Product-Type

Returns
string - Product-Type

Definition at line 128 of file Product.php.

§ hasService()

hasService (   $service)

Checks if this Products has a Service

Parameters
string$service- Service to check
Returns
bool - Has this Product this Service

Definition at line 336 of file Product.php.

§ isAustria()

isAustria ( )

Shows if send to Austria is allowed

Returns
bool - Is send to Austria allowed

Definition at line 164 of file Product.php.

§ setAustria()

setAustria (   $austria)

Set if send to Austria is allowed

Parameters
bool$austria- Is send to Austria allowed

Definition at line 173 of file Product.php.

§ setMaxHeight()

setMaxHeight (   $maxHeight)

Set the Max-Height

Parameters
float | int$maxHeight- Max-Height

Definition at line 281 of file Product.php.

§ setMaxLength()

setMaxLength (   $maxLength)

Set the Max-Length

Parameters
float | int$maxLength- Max-Length

Definition at line 209 of file Product.php.

§ setMaxWeight()

setMaxWeight (   $maxWeight)

Set the Max-Weight

Parameters
float | int$maxWeight- Max-Weight

Definition at line 299 of file Product.php.

§ setMaxWidth()

setMaxWidth (   $maxWidth)

Set the Max-Width

Parameters
float | int$maxWidth- Max-Width

Definition at line 245 of file Product.php.

§ setMinHeight()

setMinHeight (   $minHeight)

Set the Min-Height

Parameters
float | int$minHeight- Min-Height

Definition at line 263 of file Product.php.

§ setMinLength()

setMinLength (   $minLength)

Set the Min-Length

Parameters
float | int$minLength- Min-Length

Definition at line 191 of file Product.php.

§ setMinWidth()

setMinWidth (   $minWidth)

Set the Min-Width

Parameters
float | int$minWidth- Min-Width

Definition at line 227 of file Product.php.

§ setName()

setName (   $name)

Set the Name

Parameters
string$name- Name

Definition at line 155 of file Product.php.

§ setServices()

setServices (   $services)

Set Services

Parameters
string[]$services - Services

Definition at line 317 of file Product.php.


The documentation for this class was generated from the following file: