. namespace core\hook\task; use core\hook\described_hook; use core\task\task_base; /** * Hook to allow plugins to get information when a task has reached the maximum fail delay in adhoc and scheduled task * * @package core * @copyright 2024 Raquel Ortega * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ #[\core\attribute\tags('task')] #[\core\attribute\label('Allow plugins to get information when a task reaches its maximum failure delay.')] final class after_failed_task_max_delay { /** * Constructor. * @param task_base $task failed task. */ public function __construct( protected task_base $task, ) { } /** * Get the task object. * * @return task_base Task object. */ public function get_task(): task_base { return $this->task; } }