Definition at line 8 of file Factory.php.
◆ __construct()
- Parameters
-
\Magento\Framework\ObjectManagerInterface | $objectManager | |
Definition at line 25 of file Factory.php.
◆ create()
create |
( |
|
$class = null , |
|
|
|
$arguments = [] |
|
) |
| |
Create instance of a total model
- Parameters
-
string | null | $class | |
array | $arguments | |
- Returns
- \Magento\Sales\Model\Order\Pdf\Total\DefaultTotal
- Exceptions
-
Definition at line 38 of file Factory.php.
41 if (!is_a(
$class, \
Magento\Sales\Model\Order\Pdf\Total\DefaultTotal::class,
true)) {
42 throw new \Magento\Framework\Exception\LocalizedException(
44 'The PDF total model %1 must be or extend \Magento\Sales\Model\Order\Pdf\Total\DefaultTotal.',
$_option $_optionId $class
◆ $_defaultTotalModel
$_defaultTotalModel = \Magento\Sales\Model\Order\Pdf\Total\DefaultTotal::class |
|
protected |
◆ $_objectManager
The documentation for this class was generated from the following file:
- vendor/magento/module-sales/Model/Order/Pdf/Total/Factory.php