Automattic\WooCommerce\Admin\Marketing
MarketingCampaignType::__construct()
MarketingCampaignType constructor.
Метод класса: MarketingCampaignType{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$MarketingCampaignType = new MarketingCampaignType(); $MarketingCampaignType->__construct( $id, $channel, $name, $description, $create_url, $icon_url );
- $id(строка) (обязательный)
- A unique identifier for the campaign type.
- $channel(MarketingChannelInterface) (обязательный)
- The marketing channel that this campaign type belongs to.
- $name(строка) (обязательный)
- Name of the marketing campaign type.
- $description(строка) (обязательный)
- Description of the marketing campaign type.
- $create_url(строка) (обязательный)
- The URL to the create campaign page.
- $icon_url(строка) (обязательный)
- The URL to an image/icon for the campaign type.
Код MarketingCampaignType::__construct() MarketingCampaignType:: construct WC 7.7.2
public function __construct( string $id, MarketingChannelInterface $channel, string $name, string $description, string $create_url, string $icon_url ) { $this->id = $id; $this->channel = $channel; $this->name = $name; $this->description = $description; $this->create_url = $create_url; $this->icon_url = $icon_url; }