PHP Interface Sonata\Component\Invoice\InvoiceInterface

Show file Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method 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 method

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

getAddress1() public method

Get address1.
public getAddress1 ( ) : string
return string $address1

getAddress2() public method

Get address2.
public getAddress2 ( ) : string
return string $address2

getAddress3() public method

Get address3.
public getAddress3 ( ) : string
return string $address3

getCity() public method

Get city.
public getCity ( ) : string
return string $city

getCountry() public method

Get country.
public getCountry ( ) : string
return string $country

getCreatedAt() public method

public getCreatedAt ( ) : DateTime
return DateTime

getCurrency() public method

Get currency.
public getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface
return Sonata\Component\Currency\CurrencyInterface $currency

getCustomer() public method

Get user.
public getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
return Sonata\Component\Customer\CustomerInterface

getEmail() public method

Get email.
public getEmail ( ) : string
return string $email

getFax() public method

Get fax.
public getFax ( ) : string
return string $fax

getId() public method

Returns id.
public getId ( ) : integer
return integer $id

getInvoiceElements() public method

Returns all the invoice elements.
public getInvoiceElements ( ) : array
return array

getLocale() public method

Gets the locale.
public getLocale ( ) : string
return string

getMobile() public method

Get mobile.
public getMobile ( ) : string
return string $mobile

getName() public method

Get name.
public getName ( ) : string
return string $name

getPaymentMethod() public method

Get payment method.
public getPaymentMethod ( ) : string
return string

getPhone() public method

Get phone.
public getPhone ( ) : string
return string $phone

getPostcode() public method

Get postcode.
public getPostcode ( ) : string
return string $postcode

getReference() public method

Get reference.
public getReference ( ) : string
return string $reference

getStatus() public method

Get status.
public getStatus ( ) : integer
return integer $status

getTotalExcl() public method

Get totalExcl.
public getTotalExcl ( ) : float
return float $totalExcl

getTotalInc() public method

Get totalInc.
public getTotalInc ( ) : float
return float $totalInc

setAddress1() public method

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

setAddress2() public method

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

setAddress3() public method

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

setCity() public method

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

setCountry() public method

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

setCreatedAt() public method

public setCreatedAt ( DateTime $createdAt )
$createdAt DateTime

setCurrency() public method

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

setCustomer() public method

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

setEmail() public method

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

setFax() public method

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

setInvoiceElements() public method

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

setLocale() public method

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

setMobile() public method

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

setName() public method

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

setPaymentMethod() public method

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

setPhone() public method

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

setPostcode() public method

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

setReference() public method

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

setStatus() public method

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

setTotalExcl() public method

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

setTotalInc() public method

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