PHP Class Sonata\InvoiceBundle\Controller\Api\InvoiceController

Author: Hugo Briand ([email protected])
Afficher le fichier Open project: sonata-project/ecommerce

Protected Properties

Свойство Type Description
$invoiceManager Sonata\Component\Invoice\InvoiceManagerInterface

Méthodes publiques

Méthode Description
__construct ( Sonata\Component\Invoice\InvoiceManagerInterface $invoiceManager ) Constructor.
getInvoiceAction ( $id ) : Sonata\Component\Invoice\InvoiceInterface Retrieves a specific invoice.
getInvoiceInvoiceelementsAction ( $id ) : Sonata\Component\Invoice\InvoiceElementInterface Retrieves a specific invoice's elements.
getInvoicesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : Sonata\DatagridBundle\Pager\PagerInterface Returns a paginated list of invoices.

Méthodes protégées

Méthode Description
getInvoice ( $id ) : Sonata\Component\Invoice\InvoiceInterface Retrieves invoice with id $id or throws an exception if it doesn't exist.

Method Details

__construct() public méthode

Constructor.
public __construct ( Sonata\Component\Invoice\InvoiceManagerInterface $invoiceManager )
$invoiceManager Sonata\Component\Invoice\InvoiceManagerInterface

getInvoice() protected méthode

Retrieves invoice with id $id or throws an exception if it doesn't exist.
protected getInvoice ( $id ) : Sonata\Component\Invoice\InvoiceInterface
$id
Résultat Sonata\Component\Invoice\InvoiceInterface

getInvoiceAction() public méthode

Retrieves a specific invoice.
public getInvoiceAction ( $id ) : Sonata\Component\Invoice\InvoiceInterface
$id
Résultat Sonata\Component\Invoice\InvoiceInterface

getInvoiceInvoiceelementsAction() public méthode

Retrieves a specific invoice's elements.
public getInvoiceInvoiceelementsAction ( $id ) : Sonata\Component\Invoice\InvoiceElementInterface
$id
Résultat Sonata\Component\Invoice\InvoiceElementInterface

getInvoicesAction() public méthode

Returns a paginated list of invoices.
public getInvoicesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : Sonata\DatagridBundle\Pager\PagerInterface
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface
Résultat Sonata\DatagridBundle\Pager\PagerInterface

Property Details

$invoiceManager protected_oe property

protected InvoiceManagerInterface,Sonata\Component\Invoice $invoiceManager
Résultat Sonata\Component\Invoice\InvoiceManagerInterface