geno/wp-content/plugins/mailpoet/lib/AutomaticEmails/AutomaticEmailFactory.php

25 lines
504 B
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?php declare(strict_types = 1);
namespace MailPoet\AutomaticEmails;
if (!defined('ABSPATH')) exit;
use MailPoet\AutomaticEmails\WooCommerce\WooCommerce;
use MailPoet\DI\ContainerWrapper;
class AutomaticEmailFactory {
/** @var ContainerWrapper */
private $container;
public function __construct(
ContainerWrapper $container
) {
$this->container = $container;
}
public function createWooCommerceEmail(): WooCommerce {
return $this->container->get(WooCommerce::class);
}
}