REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.07 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/mailpoet/lib/Automation/Engine/Data/AutomationTemplate.php
Text
Base64
<?php declare(strict_types = 1); namespace MailPoet\Automation\Engine\Data; if (!defined('ABSPATH')) exit; use MailPoet\RuntimeException; class AutomationTemplate { public const TYPE_DEFAULT = 'default'; public const TYPE_FREE_ONLY = 'free-only'; public const TYPE_PREMIUM = 'premium'; public const TYPE_COMING_SOON = 'coming-soon'; public const CATEGORY_WELCOME = 1; public const CATEGORY_ABANDONED_CART = 2; public const CATEGORY_REENGAGEMENT = 3; public const CATEGORY_WOOCOMMERCE = 4; public const ALL_CATEGORIES = [ self::CATEGORY_WELCOME, self::CATEGORY_ABANDONED_CART, self::CATEGORY_REENGAGEMENT, self::CATEGORY_WOOCOMMERCE, ]; /** @var string */ private $slug; /** @var int */ private $category; /** @var string */ private $type; /** @var string */ private $description; /** @var Automation */ private $automation; public function __construct( string $slug, int $category, string $description, Automation $automation, string $type = self::TYPE_DEFAULT ) { if (!in_array($category, self::ALL_CATEGORIES)) { throw new RuntimeException("$category is not a valid category."); } $this->slug = $slug; $this->category = $category; $this->description = $description; $this->automation = $automation; $this->type = $type; } public function getSlug(): string { return $this->slug; } public function getName(): string { return $this->automation->getName(); } public function getCategory(): int { return $this->category; } public function getType(): string { return $this->type; } public function getDescription(): string { return $this->description; } public function getAutomation(): Automation { return $this->automation; } public function toArray(): array { return [ 'slug' => $this->getSlug(), 'name' => $this->getName(), 'category' => $this->getCategory(), 'type' => $this->getType(), 'description' => $this->getDescription(), 'automation' => $this->getAutomation()->toArray(), ]; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Automation.php
5.84 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AutomationRun.php
3.06 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AutomationRunLog.php
3.96 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AutomationStatistics.php
1.16 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AutomationTemplate.php
2.07 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Field.php
1.16 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
0 B
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NextStep.php
491 B
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Step.php
1.84 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StepRunArgs.php
3.31 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StepValidationArgs.php
1.83 KB
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Subject.php
909 B
lrw-r--r--
2023-04-04 05:35:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SubjectEntry.php
1.18 KB
lrw-r--r--
2023-04-04 05:35:40
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).