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

namespace DatabaseCleanup\Includes\Tasks;

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

class Task_As_Pending_Logs extends Abstract_Action_Scheduler_Task {

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

	public function get_label(): string {
		return __( 'Action Scheduler: pending action logs', 'wppowersuite-lite' );
	}

	public function get_description(): string {
		return __( 'Remove log rows linked to pending Action Scheduler actions.', 'wppowersuite-lite' );
	}

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

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