PHP Interface Sonata\Component\Invoice\InvoiceInterface

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

Méthodes publiques

Méthode Description
addInvoiceElement ( Sonata\Component\Invoice\InvoiceElementInterface $element ) Adds an invoice element to the invoice.
getAddress1 ( ) : string Get address1.
getAddress2 ( ) : string Get address2.
getAddress3 ( ) : string Get address3.
getCity ( ) : string Get city.
getCountry ( ) : string Get country.
getCreatedAt ( ) : DateTime
getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface Get currency.
getCustomer ( ) : Sonata\Component\Customer\CustomerInterface Get user.
getEmail ( ) : string Get email.
getFax ( ) : string Get fax.
getId ( ) : integer Returns id.
getInvoiceElements ( ) : array Returns all the invoice elements.
getLocale ( ) : string Gets the locale.
getMobile ( ) : string Get mobile.
getName ( ) : string Get name.
getPaymentMethod ( ) : string Get payment method.
getPhone ( ) : string Get phone.
getPostcode ( ) : string Get postcode.
getReference ( ) : string Get reference.
getStatus ( ) : integer Get status.
getTotalExcl ( ) : float Get totalExcl.
getTotalInc ( ) : float Get totalInc.
setAddress1 ( string $address1 ) Set address1.
setAddress2 ( string $address2 ) Set address2.
setAddress3 ( string $address3 ) Set address3.
setCity ( string $city ) Set city.
setCountry ( string $country ) Set country.
setCreatedAt ( DateTime $createdAt )
setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency ) Set currency.
setCustomer ( Sonata\Component\Customer\CustomerInterface $customer ) Set user.
setEmail ( string $email ) Set email.
setFax ( string $fax ) Set fax.
setInvoiceElements ( array $elements ) Sets the invoice elements collection.
setLocale ( string $locale ) Sets the locale.
setMobile ( string $mobile ) Set mobile.
setName ( string $name ) Set name.
setPaymentMethod ( string $paymentMethod ) Set payment method.
setPhone ( string $phone ) Set phone.
setPostcode ( string $postcode ) Set postcode.
setReference ( string $reference ) Set reference.
setStatus ( integer $status ) Set status.
setTotalExcl ( float $totalExcl ) Set totalExcl.
setTotalInc ( float $totalInc ) Set totalInc.

Method Details

addInvoiceElement() public méthode

Adds an invoice element to the invoice.
public addInvoiceElement ( Sonata\Component\Invoice\InvoiceElementInterface $element )
$element Sonata\Component\Invoice\InvoiceElementInterface

getAddress1() public méthode

Get address1.
public getAddress1 ( ) : string
Résultat string $address1

getAddress2() public méthode

Get address2.
public getAddress2 ( ) : string
Résultat string $address2

getAddress3() public méthode

Get address3.
public getAddress3 ( ) : string
Résultat string $address3

getCity() public méthode

Get city.
public getCity ( ) : string
Résultat string $city

getCountry() public méthode

Get country.
public getCountry ( ) : string
Résultat string $country

getCreatedAt() public méthode

public getCreatedAt ( ) : DateTime
Résultat DateTime

getCurrency() public méthode

Get currency.
public getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface
Résultat Sonata\Component\Currency\CurrencyInterface $currency

getCustomer() public méthode

Get user.
public getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
Résultat Sonata\Component\Customer\CustomerInterface

getEmail() public méthode

Get email.
public getEmail ( ) : string
Résultat string $email

getFax() public méthode

Get fax.
public getFax ( ) : string
Résultat string $fax

getId() public méthode

Returns id.
public getId ( ) : integer
Résultat integer $id

getInvoiceElements() public méthode

Returns all the invoice elements.
public getInvoiceElements ( ) : array
Résultat array

getLocale() public méthode

Gets the locale.
public getLocale ( ) : string
Résultat string

getMobile() public méthode

Get mobile.
public getMobile ( ) : string
Résultat string $mobile

getName() public méthode

Get name.
public getName ( ) : string
Résultat string $name

getPaymentMethod() public méthode

Get payment method.
public getPaymentMethod ( ) : string
Résultat string

getPhone() public méthode

Get phone.
public getPhone ( ) : string
Résultat string $phone

getPostcode() public méthode

Get postcode.
public getPostcode ( ) : string
Résultat string $postcode

getReference() public méthode

Get reference.
public getReference ( ) : string
Résultat string $reference

getStatus() public méthode

Get status.
public getStatus ( ) : integer
Résultat integer $status

getTotalExcl() public méthode

Get totalExcl.
public getTotalExcl ( ) : float
Résultat float $totalExcl

getTotalInc() public méthode

Get totalInc.
public getTotalInc ( ) : float
Résultat float $totalInc

setAddress1() public méthode

Set address1.
public setAddress1 ( string $address1 )
$address1 string

setAddress2() public méthode

Set address2.
public setAddress2 ( string $address2 )
$address2 string

setAddress3() public méthode

Set address3.
public setAddress3 ( string $address3 )
$address3 string

setCity() public méthode

Set city.
public setCity ( string $city )
$city string

setCountry() public méthode

Set country.
public setCountry ( string $country )
$country string

setCreatedAt() public méthode

public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setCurrency() public méthode

Set currency.
public setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency )
$currency Sonata\Component\Currency\CurrencyInterface

setCustomer() public méthode

Set user.
public setCustomer ( Sonata\Component\Customer\CustomerInterface $customer )
$customer Sonata\Component\Customer\CustomerInterface

setEmail() public méthode

Set email.
public setEmail ( string $email )
$email string

setFax() public méthode

Set fax.
public setFax ( string $fax )
$fax string

setInvoiceElements() public méthode

Sets the invoice elements collection.
public setInvoiceElements ( array $elements )
$elements array

setLocale() public méthode

Sets the locale.
public setLocale ( string $locale )
$locale string

setMobile() public méthode

Set mobile.
public setMobile ( string $mobile )
$mobile string

setName() public méthode

Set name.
public setName ( string $name )
$name string

setPaymentMethod() public méthode

Set payment method.
public setPaymentMethod ( string $paymentMethod )
$paymentMethod string

setPhone() public méthode

Set phone.
public setPhone ( string $phone )
$phone string

setPostcode() public méthode

Set postcode.
public setPostcode ( string $postcode )
$postcode string

setReference() public méthode

Set reference.
public setReference ( string $reference )
$reference string

setStatus() public méthode

Set status.
public setStatus ( integer $status )
$status integer

setTotalExcl() public méthode

Set totalExcl.
public setTotalExcl ( float $totalExcl )
$totalExcl float

setTotalInc() public méthode

Set totalInc.
public setTotalInc ( float $totalInc )
$totalInc float