PHP Class Sonata\InvoiceBundle\Entity\BaseInvoice

Inheritance: implements Sonata\Component\Invoice\InvoiceInterface
Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство Type Description
$address1 string
$address2 string
$address3 string
$city string
$country string
$createdAt DateTime
$currency Sonata\Component\Currency\CurrencyInterface
$customer integer
$email 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

Méthodes publiques

Méthode 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.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

__toString() public méthode

public __toString ( ) : string
Résultat string

addInvoiceElement() public méthode

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

getBillingAsArray() public méthode

public getBillingAsArray ( ) : array
Résultat array

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 userId.
public getCustomer ( ) : integer
Résultat integer $customer

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

getFullBilling() public méthode

Returns formatted billing address.
public getFullBilling ( string $sep = ', ' ) : string
$sep string
Résultat string

getInvoiceElements() public méthode

public getInvoiceElements ( )

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

public getPaymentMethod ( )

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

getStatusList() public static méthode

public static getStatusList ( ) : array
Résultat array

getStatusName() public méthode

public getStatusName ( ) : string
Résultat string

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

getUser() public méthode

Get user.
public getUser ( ) : Sonata\UserBundle\Model\UserInterface
Résultat Sonata\UserBundle\Model\UserInterface $user

getValidationStatusList() public static méthode

public static getValidationStatusList ( ) : array
Résultat array

getVatAmounts() public méthode

Returns all VAT amounts contained in elements.
public getVatAmounts ( ) : array
Résultat array

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 userId R.
public setCustomer ( Sonata\Component\Customer\CustomerInterface $customer = null )
$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

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

public setPaymentMethod ( $paymentMethod )

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

setUser() public méthode

Set user.
public setUser ( Sonata\UserBundle\Model\UserInterface $user )
$user Sonata\UserBundle\Model\UserInterface

Property Details

$address1 protected_oe property

protected string $address1
Résultat string

$address2 protected_oe property

protected string $address2
Résultat string

$address3 protected_oe property

protected string $address3
Résultat string

$city protected_oe property

protected string $city
Résultat string

$country protected_oe property

protected string $country
Résultat string

$createdAt protected_oe property

protected DateTime $createdAt
Résultat DateTime

$currency protected_oe property

protected CurrencyInterface,Sonata\Component\Currency $currency
Résultat Sonata\Component\Currency\CurrencyInterface

$customer protected_oe property

protected int $customer
Résultat integer

$email protected_oe property

protected string $email
Résultat string

$fax protected_oe property

protected string $fax
Résultat string

$invoiceElements protected_oe property

protected array $invoiceElements
Résultat array

$locale protected_oe property

protected string $locale
Résultat string

$mobile protected_oe property

protected string $mobile
Résultat string

$name protected_oe property

protected string $name
Résultat string

$paymentMethod protected_oe property

protected string $paymentMethod
Résultat string

$phone protected_oe property

protected string $phone
Résultat string

$postcode protected_oe property

protected string $postcode
Résultat string

$reference protected_oe property

protected string $reference
Résultat string

$status protected_oe property

protected int $status
Résultat integer

$totalExcl protected_oe property

protected float $totalExcl
Résultat float

$totalInc protected_oe property

protected float $totalInc
Résultat float

$user protected_oe property

protected UserInterface,Sonata\UserBundle\Model $user
Résultat Sonata\UserBundle\Model\UserInterface