geno/wp-content/plugins/mailpoet/lib/WooCommerce/MultichannelMarketing/MPMarketingChannelController.php
2024-02-01 11:54:18 +00:00

28 lines
638 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\WooCommerce\MultichannelMarketing;
if (!defined('ABSPATH')) exit;
class MPMarketingChannelController {
/**
* @var MPMarketingChannelDataController
*/
private $channelDataController;
public function __construct(
MPMarketingChannelDataController $channelDataController
) {
$this->channelDataController = $channelDataController;
}
public function registerMarketingChannel($registeredMarketingChannels): array {
return array_merge($registeredMarketingChannels, [
new MPMarketingChannel(
$this->channelDataController
),
]);
}
}