PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
mailpoet
/
lib
/
Automation
/
Engine
/
Data
<?php declare(strict_types = 1); namespace MailPoet\Automation\Engine\Data; if (!defined('ABSPATH')) exit; class Filter { /** @var string */ private $id; /** @var string */ private $fieldType; /** @var string */ private $fieldKey; /** @var string */ private $condition; /** @var array */ private $args; public function __construct( string $id, string $fieldType, string $fieldKey, string $condition, array $args ) { $this->id = $id; $this->fieldType = $fieldType; $this->fieldKey = $fieldKey; $this->condition = $condition; $this->args = $args; } public function getId(): string { return $this->id; } public function getFieldType(): string { return $this->fieldType; } public function getFieldKey(): string { return $this->fieldKey; } public function getCondition(): string { return $this->condition; } public function getArgs(): array { return $this->args; } public function toArray(): array { return [ 'id' => $this->id, 'field_type' => $this->fieldType, 'field_key' => $this->fieldKey, 'condition' => $this->condition, 'args' => $this->args, ]; } public static function fromArray(array $data): self { return new self( $data['id'], $data['field_type'], $data['field_key'], $data['condition'], $data['args'] ); } }
[-] AutomationRunLog.php
[edit]
[-] Filter.php
[edit]
[-] index.php
[edit]
[+]
..
[-] AutomationTemplate.php
[edit]
[-] NextStep.php
[edit]
[-] Subject.php
[edit]
[-] StepValidationArgs.php
[edit]
[-] AutomationTemplateCategory.php
[edit]
[-] AutomationStatistics.php
[edit]
[-] Filters.php
[edit]
[-] FilterGroup.php
[edit]
[-] AutomationRun.php
[edit]
[-] Automation.php
[edit]
[-] Field.php
[edit]
[-] SubjectEntry.php
[edit]
[-] StepRunArgs.php
[edit]
[-] Step.php
[edit]