Files
woocommerce-subscriptions/includes/libraries/action-scheduler/classes/ActionScheduler_CanceledAction.php
Prospress Inc 1039aec2d9 2.3.2
2018-07-19 12:14:08 +02:00

22 lines
681 B
PHP
Executable File

<?php
/**
* Class ActionScheduler_CanceledAction
*
* Stored action which was canceled and therefore acts like a finished action but should always return a null schedule,
* regardless of schedule passed to its constructor.
*/
class ActionScheduler_CanceledAction extends ActionScheduler_FinishedAction {
/**
* @param string $hook
* @param array $args
* @param ActionScheduler_Schedule $schedule
* @param string $group
*/
public function __construct( $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' ) {
parent::__construct( $hook, $args, $schedule, $group );
$this->set_schedule( new ActionScheduler_NullSchedule() );
}
}