MarketingChannels
in package
MarketingChannels repository class
Tags
Table of Contents
- $registered_channels : array<string|int, MarketingChannelInterface>
- The registered marketing channels.
- get_registered_channels() : array<string|int, MarketingChannelInterface>
- Returns an array of all registered marketing channels.
- register() : void
- Registers a marketing channel.
- unregister_all() : void
- Unregisters all marketing channels.
Properties
$registered_channels
The registered marketing channels.
private
array<string|int, MarketingChannelInterface>
$registered_channels
= []
Methods
get_registered_channels()
Returns an array of all registered marketing channels.
public
get_registered_channels() : array<string|int, MarketingChannelInterface>
Return values
array<string|int, MarketingChannelInterface> —register()
Registers a marketing channel.
public
register(MarketingChannelInterface $channel) : void
Parameters
- $channel : MarketingChannelInterface
-
The marketing channel to register.
Tags
Return values
void —unregister_all()
Unregisters all marketing channels.
public
unregister_all() : void