REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.34 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/woocommerce/src/Admin/Marketing/MarketingCampaign.php
Text
Base64
<?php /** * Represents a marketing/ads campaign for marketing channels. * * Marketing channels (implementing MarketingChannelInterface) can use this class to map their campaign data and present it to WooCommerce core. */ namespace Automattic\WooCommerce\Admin\Marketing; /** * MarketingCampaign class * * @since x.x.x */ class MarketingCampaign { /** * The unique identifier. * * @var string */ protected $id; /** * The marketing campaign type. * * @var MarketingCampaignType */ protected $type; /** * Title of the marketing campaign. * * @var string */ protected $title; /** * The URL to the channel's campaign management page. * * @var string */ protected $manage_url; /** * The cost of the marketing campaign with the currency. * * @var Price */ protected $cost; /** * MarketingCampaign constructor. * * @param string $id The marketing campaign's unique identifier. * @param MarketingCampaignType $type The marketing campaign type. * @param string $title The title of the marketing campaign. * @param string $manage_url The URL to the channel's campaign management page. * @param Price|null $cost The cost of the marketing campaign with the currency. */ public function __construct( string $id, MarketingCampaignType $type, string $title, string $manage_url, Price $cost = null ) { $this->id = $id; $this->type = $type; $this->title = $title; $this->manage_url = $manage_url; $this->cost = $cost; } /** * Returns the marketing campaign's unique identifier. * * @return string */ public function get_id(): string { return $this->id; } /** * Returns the marketing campaign type. * * @return MarketingCampaignType */ public function get_type(): MarketingCampaignType { return $this->type; } /** * Returns the title of the marketing campaign. * * @return string */ public function get_title(): string { return $this->title; } /** * Returns the URL to manage the marketing campaign. * * @return string */ public function get_manage_url(): string { return $this->manage_url; } /** * Returns the cost of the marketing campaign with the currency. * * @return Price|null */ public function get_cost(): ?Price { return $this->cost; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
InstalledExtensions.php
16.52 KB
lrw-r--r--
2026-03-03 06:10:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MarketingCampaign.php
2.34 KB
lrw-r--r--
2026-03-03 06:10:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MarketingCampaignType.php
2.87 KB
lrw-r--r--
2026-03-03 06:10:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MarketingChannelInterface.php
2.25 KB
lrw-r--r--
2026-03-03 06:10:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MarketingChannels.php
1.59 KB
lrw-r--r--
2026-03-03 06:10:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Price.php
851 B
lrw-r--r--
2026-03-03 06:10:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).