* @link http://www.oxidmodule.com */ namespace D3\PdfDocuments\Application\Model\Registries; use D3\PdfDocuments\Application\Model\Documents\deliverynotePdf; use D3\PdfDocuments\Application\Model\Documents\deliverynotewithoutlogoPdf; use D3\PdfDocuments\Application\Model\Documents\invoicePdf; use D3\PdfDocuments\Application\Model\Documents\invoicewithoutlogoPdf; use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface; class registryOrderoverview extends registryAbstract implements registryOrderoverviewInterface { public function __construct() { $this->addGenerator(invoicePdf::class, oxNew(invoicePdf::class)); $this->addGenerator(deliverynotePdf::class, oxNew(deliverynotePdf::class)); $this->addGenerator(invoicewithoutlogoPdf::class, oxNew(invoicewithoutlogoPdf::class)); $this->addGenerator(deliverynotewithoutlogoPdf::class, oxNew(deliverynotewithoutlogoPdf::class)); } /** * @param $className * @param pdfdocumentsOrderInterface $pdfGenerator */ public function addGenerator($className, pdfdocumentsOrderInterface $pdfGenerator) { $this->addItem($className, $pdfGenerator); } /** * @param $className * generator fully qualified class name * @return pdfdocumentsOrderInterface */ public function getGenerator($className) { return $this->_aRegistry[$className]; } }