pdfdokumente/Application/Model/Registries/registryOrderoverview.php

52 lignes
1.6 KiB
PHP
Brut Vue normale Historique

2020-05-30 00:45:18 +02:00
<?php
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware.
*
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law.
*
* http://www.shopmodule.com
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Max Buhe <support@shopmodule.com>
* @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;
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];
}
}