PHP Interface Sonata\Component\Delivery\ServiceDeliveryInterface

Afficher le fichier Open project: sonata-project/ecommerce Interface Usage Examples

Méthodes publiques

Méthode Description
getCode ( ) : string
getEnabled ( ) : boolean
getName ( ) : string
getPrice ( ) : float
getPriority ( ) : integer
getTotal ( Sonata\Component\Basket\BasketInterface $basket, boolean $vat = false ) : float Return the delivery price.
getVatAmount ( Sonata\Component\Basket\BasketInterface $basket ) : float Return the vat amount.
getVatRate ( ) : float
isAddressRequired ( ) : boolean
setVatRate ( float $vat ) Sets the VAT rate.

Method Details

getCode() public méthode

public getCode ( ) : string
Résultat string

getEnabled() public méthode

public getEnabled ( ) : boolean
Résultat boolean

getName() public méthode

public getName ( ) : string
Résultat string the name of the delivery method

getPrice() public méthode

public getPrice ( ) : float
Résultat float the delivery base price

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

getTotal() public méthode

Return the delivery price.
public getTotal ( Sonata\Component\Basket\BasketInterface $basket, boolean $vat = false ) : float
$basket Sonata\Component\Basket\BasketInterface
$vat boolean
Résultat float

getVatAmount() public méthode

Return the vat amount.
public getVatAmount ( Sonata\Component\Basket\BasketInterface $basket ) : float
$basket Sonata\Component\Basket\BasketInterface
Résultat float

getVatRate() public méthode

public getVatRate ( ) : float
Résultat float the vat linked to the delivery

isAddressRequired() public méthode

public isAddressRequired ( ) : boolean
Résultat boolean return true an address is required to use this delivery method

setVatRate() public méthode

Sets the VAT rate.
public setVatRate ( float $vat )
$vat float