PHP Class Sonata\InvoiceBundle\Controller\Api\InvoiceController

Author: Hugo Briand ([email protected])
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$invoiceManager Sonata\Component\Invoice\InvoiceManagerInterface

Public Methods

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

Protected Methods

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

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

getInvoice() protected method

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

getInvoiceAction() public method

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

getInvoiceInvoiceelementsAction() public method

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

getInvoicesAction() public method

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

Property Details

$invoiceManager protected property

protected InvoiceManagerInterface,Sonata\Component\Invoice $invoiceManager
return Sonata\Component\Invoice\InvoiceManagerInterface