geno/wp-content/plugins/mailpoet/lib/AutomaticEmails/AutomaticEmailFactory.php
2024-02-01 11:54:18 +00:00

24 lines
504 B
PHP

<?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);
}
}