Sonata\Component\Transformer\InvoiceTransformer::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Sonata\Component\Invoice\InvoiceElementManagerInterface $invoiceElementManager, Pool $deliveryPool, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$invoiceElementManager Sonata\Component\Invoice\InvoiceElementManagerInterface Invoice element manager
$deliveryPool Sonata\Component\Delivery\Pool Delivery pool component
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
    public function __construct(InvoiceElementManagerInterface $invoiceElementManager, DeliveryPool $deliveryPool, EventDispatcherInterface $eventDispatcher)
    {
        $this->invoiceElementManager = $invoiceElementManager;
        $this->deliveryPool = $deliveryPool;
        $this->eventDispatcher = $eventDispatcher;
    }