PHP Класс Payu\Component\Product

Наследование: implements ComponentInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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 getCode ( ) : string
Результат string

getInfo() публичный Метод

public getInfo ( ) : string
Результат string

getName() публичный Метод

public getName ( ) : string
Результат string

getPrice() публичный Метод

public getPrice ( ) : float
Результат float

getPriceType() публичный Метод

public getPriceType ( ) : string
Результат string

getQuantity() публичный Метод

public getQuantity ( ) : integer
Результат integer

getVat() публичный Метод

Gets the value of vat.
public getVat ( ) : integer
Результат integer

getVersion() публичный Метод

public getVersion ( ) : string
Результат string

setCode() публичный Метод

public setCode ( string $code )
$code string

setInfo() публичный Метод

public setInfo ( string $info )
$info string

setName() публичный Метод

public setName ( string $name )
$name string

setPrice() публичный Метод

public setPrice ( float $price )
$price float

setPriceType() публичный Метод

public setPriceType ( string $priceType )
$priceType string

setQuantity() публичный Метод

public setQuantity ( integer $quantity )
$quantity integer

setVat() публичный Метод

Sets the value of vat.
public setVat ( integer $vat ) : self
$vat integer
Результат self

setVersion() публичный Метод

public setVersion ( string $version )
$version string