Files
piratepoet/mailpoet/lib/Automation/Engine/Workflows/Trigger.php
David Remer e1e5749eca Change isTriggeredBy signature for clarity
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00

14 lines
337 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation\Engine\Workflows;
interface Trigger extends Step {
public function registerHooks(): void;
/**
* Validate if the specific context of a run meets the
* settings of a given trigger.
*/
public function isTriggeredBy(array $args, Subject ...$subjects): bool;
}