PHP 인터페이스 Sonata\Component\Delivery\ServiceDeliveryInterface

파일 보기 프로젝트 열기: sonata-project/ecommerce 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getCode() 공개 메소드

public getCode ( ) : string
리턴 string

getEnabled() 공개 메소드

public getEnabled ( ) : boolean
리턴 boolean

getName() 공개 메소드

public getName ( ) : string
리턴 string the name of the delivery method

getPrice() 공개 메소드

public getPrice ( ) : float
리턴 float the delivery base price

getPriority() 공개 메소드

public getPriority ( ) : integer
리턴 integer

getTotal() 공개 메소드

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

getVatAmount() 공개 메소드

Return the vat amount.
public getVatAmount ( Sonata\Component\Basket\BasketInterface $basket ) : float
$basket Sonata\Component\Basket\BasketInterface
리턴 float

getVatRate() 공개 메소드

public getVatRate ( ) : float
리턴 float the vat linked to the delivery

isAddressRequired() 공개 메소드

public isAddressRequired ( ) : boolean
리턴 boolean return true an address is required to use this delivery method

setVatRate() 공개 메소드

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