geno/wp-content/plugins/mailpoet/lib/WooCommerce/MultichannelMarketing/MPMarketingChannelController.php

29 lines
638 B
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?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
),
]);
}
}