8
0
pdfdokumente/Application/Model/Registries/registryOrderoverview.php

45 Zeilen
1.4 KiB
PHP

2020-05-30 00:45:18 +02:00
<?php
/**
2020-07-04 23:25:24 +02:00
* See LICENSE file for license details.
2020-05-30 00:45:18 +02:00
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
2020-07-04 23:25:24 +02:00
* @author D3 Data Development - Max Buhe <support@shopmodule.com>
* @link http://www.oxidmodule.com
2020-05-30 00:45:18 +02:00
*/
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;
2020-05-30 01:17:27 +02:00
use D3\PdfDocuments\Application\Model\Interfaces\pdfdocumentsOrderInterface;
2020-05-30 00:45:18 +02:00
2020-05-30 01:02:50 +02:00
class registryOrderoverview extends registryAbstract implements registryOrderoverviewInterface
2020-05-30 00:45:18 +02:00
{
public function __construct()
{
2020-06-02 10:04:19 +02:00
$this->addGenerator(invoicePdf::class);
$this->addGenerator(deliverynotePdf::class);
$this->addGenerator(invoicewithoutlogoPdf::class);
$this->addGenerator(deliverynotewithoutlogoPdf::class);
2020-05-30 00:45:18 +02:00
}
/**
2020-06-02 10:04:19 +02:00
* @return string
2020-05-30 00:45:18 +02:00
*/
2020-06-02 10:04:19 +02:00
public function getRequiredGeneratorInterfaceClassName()
2020-05-30 00:45:18 +02:00
{
2020-06-02 10:04:19 +02:00
return pdfdocumentsOrderInterface::class;
2020-05-30 00:45:18 +02:00
}
/**
* @param $className * generator fully qualified class name
2020-05-30 01:17:27 +02:00
* @return pdfdocumentsOrderInterface
2020-05-30 00:45:18 +02:00
*/
public function getGenerator($className)
{
return $this->_aRegistry[$className];
}
}