Property | Type | Description | |
---|---|---|---|
$address1 | string | ||
$address2 | string | ||
$address3 | string | ||
$city | string | ||
$country | string | ||
$createdAt | DateTime | ||
$currency | Sonata\Component\Currency\CurrencyInterface | ||
$customer | integer | ||
string | |||
$fax | string | ||
$invoiceElements | array | ||
$locale | string | ||
$mobile | string | ||
$name | string | ||
$paymentMethod | string | ||
$phone | string | ||
$postcode | string | ||
$reference | string | ||
$status | integer | ||
$totalExcl | float | ||
$totalInc | float | ||
$user | Sonata\UserBundle\Model\UserInterface |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
__toString ( ) : string | ||
addInvoiceElement ( Sonata\Component\Invoice\InvoiceElementInterface $element ) | ||
getAddress1 ( ) : string | Get address1. | |
getAddress2 ( ) : string | Get address2. | |
getAddress3 ( ) : string | Get address3. | |
getBillingAsArray ( ) : array | ||
getCity ( ) : string | Get city. | |
getCountry ( ) : string | Get country. | |
getCreatedAt ( ) : DateTime | ||
getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface | Get currency. | |
getCustomer ( ) : integer | Get userId. | |
getEmail ( ) : string | Get email. | |
getFax ( ) : string | Get fax. | |
getFullBilling ( string $sep = ', ' ) : string | Returns formatted billing address. | |
getInvoiceElements ( ) | ||
getLocale ( ) : string | Gets the locale. | |
getMobile ( ) : string | Get mobile. | |
getName ( ) : string | Get name. | |
getPaymentMethod ( ) | ||
getPhone ( ) : string | Get phone. | |
getPostcode ( ) : string | Get postcode. | |
getReference ( ) : string | Get reference. | |
getStatus ( ) : integer | Get status. | |
getStatusList ( ) : array | ||
getStatusName ( ) : string | ||
getTotalExcl ( ) : float | Get totalExcl. | |
getTotalInc ( ) : float | Get totalInc. | |
getUser ( ) : Sonata\UserBundle\Model\UserInterface | Get user. | |
getValidationStatusList ( ) : array | ||
getVatAmounts ( ) : array | Returns all VAT amounts contained in elements. | |
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 = null ) | Set userId R. | |
setEmail ( string $email ) | Set email. | |
setFax ( string $fax ) | Set fax. | |
setInvoiceElements ( array $elements ) | ||
setLocale ( string $locale ) | Sets the locale. | |
setMobile ( string $mobile ) | Set mobile. | |
setName ( string $name ) | Set name. | |
setPaymentMethod ( $paymentMethod ) | ||
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. | |
setUser ( Sonata\UserBundle\Model\UserInterface $user ) | Set user. |
public addInvoiceElement ( Sonata\Component\Invoice\InvoiceElementInterface $element ) | ||
$element | Sonata\Component\Invoice\InvoiceElementInterface |
public getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface | ||
return | Sonata\Component\Currency\CurrencyInterface | $currency |
public getFullBilling ( string $sep = ', ' ) : string | ||
$sep | string | |
return | string |
public getReference ( ) : string | ||
return | string | $reference |
public getUser ( ) : Sonata\UserBundle\Model\UserInterface | ||
return | Sonata\UserBundle\Model\UserInterface | $user |
public static getValidationStatusList ( ) : array | ||
return | array |
public getVatAmounts ( ) : array | ||
return | array |
public setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency ) | ||
$currency | Sonata\Component\Currency\CurrencyInterface |
public setCustomer ( Sonata\Component\Customer\CustomerInterface $customer = null ) | ||
$customer | Sonata\Component\Customer\CustomerInterface |
public setReference ( string $reference ) | ||
$reference | string |
public setTotalExcl ( float $totalExcl ) | ||
$totalExcl | float |
public setUser ( Sonata\UserBundle\Model\UserInterface $user ) | ||
$user | Sonata\UserBundle\Model\UserInterface |
protected CurrencyInterface,Sonata\Component\Currency $currency | ||
return | Sonata\Component\Currency\CurrencyInterface |