PHP Class Payu\Component\Product

Inheritance: implements ComponentInterface
Datei anzeigen Open project: paranoiaproject/payuclient

Public Methods

Method Description
__construct ( null $name = null, null $code = null, null $quantity = null, null $info = null, null $price = null, null $version = null, null $vat = null, null $priceType = null ) If you set vat value, the price should calculate without vat
getCode ( ) : string
getInfo ( ) : string
getName ( ) : string
getPrice ( ) : float
getPriceType ( ) : string
getQuantity ( ) : integer
getVat ( ) : integer Gets the value of vat.
getVersion ( ) : string
setCode ( string $code )
setInfo ( string $info )
setName ( string $name )
setPrice ( float $price )
setPriceType ( string $priceType )
setQuantity ( integer $quantity )
setVat ( integer $vat ) : self Sets the value of vat.
setVersion ( string $version )

Method Details

__construct() public method

If you set vat value, the price should calculate without vat
public __construct ( null $name = null, null $code = null, null $quantity = null, null $info = null, null $price = null, null $version = null, null $vat = null, null $priceType = null )
$name null
$code null
$quantity null
$info null
$price null
$version null
$vat null
$priceType null

getCode() public method

public getCode ( ) : string
return string

getInfo() public method

public getInfo ( ) : string
return string

getName() public method

public getName ( ) : string
return string

getPrice() public method

public getPrice ( ) : float
return float

getPriceType() public method

public getPriceType ( ) : string
return string

getQuantity() public method

public getQuantity ( ) : integer
return integer

getVat() public method

Gets the value of vat.
public getVat ( ) : integer
return integer

getVersion() public method

public getVersion ( ) : string
return string

setCode() public method

public setCode ( string $code )
$code string

setInfo() public method

public setInfo ( string $info )
$info string

setName() public method

public setName ( string $name )
$name string

setPrice() public method

public setPrice ( float $price )
$price float

setPriceType() public method

public setPriceType ( string $priceType )
$priceType string

setQuantity() public method

public setQuantity ( integer $quantity )
$quantity integer

setVat() public method

Sets the value of vat.
public setVat ( integer $vat ) : self
$vat integer
return self

setVersion() public method

public setVersion ( string $version )
$version string