PHP Class Sonata\Component\Delivery\BaseServiceDelivery

Inheritance: implements Sonata\Component\Delivery\ServiceDeliveryInterface
Show file Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$code string
$enabled boolean
$name string
$options array
$price float
$priority integer
$vat float

Public Methods

Method Description
getCode ( )
getEnabled ( )
getName ( )
getOption ( string $name, mixed $default = null ) : mixed Returns the option $name.
getOptions ( ) : array
getPrice ( )
getPriority ( )
getStatusList ( ) : array return status list.
getTotal ( Sonata\Component\Basket\BasketInterface $basket, $vat = false )
getVatAmount ( Sonata\Component\Basket\BasketInterface $basket )
getVatRate ( )
setCode ( string $code )
setEnabled ( boolean $enabled )
setName ( string $name )
setOptions ( array $options )
setPrice ( float $price )
setPriority ( integer $priority )
setVatRate ( $vat )

Method Details

getCode() public method

public getCode ( )

getEnabled() public method

public getEnabled ( )

getName() public method

public getName ( )

getOption() public method

Returns the option $name.
public getOption ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
return mixed

getOptions() public method

public getOptions ( ) : array
return array

getPrice() public method

public getPrice ( )

getPriority() public method

public getPriority ( )

getStatusList() public static method

return status list.
public static getStatusList ( ) : array
return array

getTotal() public method

public getTotal ( Sonata\Component\Basket\BasketInterface $basket, $vat = false )
$basket Sonata\Component\Basket\BasketInterface

getVatAmount() public method

public getVatAmount ( Sonata\Component\Basket\BasketInterface $basket )
$basket Sonata\Component\Basket\BasketInterface

getVatRate() public method

public getVatRate ( )

setCode() public method

public setCode ( string $code )
$code string

setEnabled() public method

public setEnabled ( boolean $enabled )
$enabled boolean

setName() public method

public setName ( string $name )
$name string

setOptions() public method

public setOptions ( array $options )
$options array

setPrice() public method

public setPrice ( float $price )
$price float

setPriority() public method

public setPriority ( integer $priority )
$priority integer

setVatRate() public method

public setVatRate ( $vat )

Property Details

$code protected property

protected string $code
return string

$enabled protected property

protected bool $enabled
return boolean

$name protected property

protected string $name
return string

$options protected property

protected array $options
return array

$price protected property

protected float $price
return float

$priority protected property

protected int $priority
return integer

$vat protected property

protected float $vat
return float