PHP Class Sonata\Component\Delivery\BaseServiceDelivery

Inheritance: implements Sonata\Component\Delivery\ServiceDeliveryInterface
Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство Type Description
$code string
$enabled boolean
$name string
$options array
$price float
$priority integer
$vat float

Méthodes publiques

Méthode 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 méthode

public getCode ( )

getEnabled() public méthode

public getEnabled ( )

getName() public méthode

public getName ( )

getOption() public méthode

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

getOptions() public méthode

public getOptions ( ) : array
Résultat array

getPrice() public méthode

public getPrice ( )

getPriority() public méthode

public getPriority ( )

getStatusList() public static méthode

return status list.
public static getStatusList ( ) : array
Résultat array

getTotal() public méthode

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

getVatAmount() public méthode

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

getVatRate() public méthode

public getVatRate ( )

setCode() public méthode

public setCode ( string $code )
$code string

setEnabled() public méthode

public setEnabled ( boolean $enabled )
$enabled boolean

setName() public méthode

public setName ( string $name )
$name string

setOptions() public méthode

public setOptions ( array $options )
$options array

setPrice() public méthode

public setPrice ( float $price )
$price float

setPriority() public méthode

public setPriority ( integer $priority )
$priority integer

setVatRate() public méthode

public setVatRate ( $vat )

Property Details

$code protected_oe property

protected string $code
Résultat string

$enabled protected_oe property

protected bool $enabled
Résultat boolean

$name protected_oe property

protected string $name
Résultat string

$options protected_oe property

protected array $options
Résultat array

$price protected_oe property

protected float $price
Résultat float

$priority protected_oe property

protected int $priority
Résultat integer

$vat protected_oe property

protected float $vat
Résultat float