<?php
/**
 * Action Scheduler: pending actions cleanup.
 *
 * @package DatabaseCleanup
 */

namespace DatabaseCleanup\Includes\Tasks;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Task_As_Pending_Actions extends Abstract_Action_Scheduler_Task {

	public function get_id(): string {
		return 'as_pending_actions';
	}

	public function get_label(): string {
		return __( 'Action Scheduler: pending actions', 'wp-powersuite' );
	}

	public function get_description(): string {
		return __( 'Remove pending Action Scheduler action rows.', 'wp-powersuite' );
	}

	public function is_safe(): bool {
		return false;
	}

	protected function target(): array {
		return [ 'table' => 'actions', 'status' => 'pending', 'log' => false ];
	}
}
