WordPress at a glance
function is not described

ActionScheduler_ActionFactory::get_stored_action() public WC 1.0

{} It's a method of the class: ActionScheduler_ActionFactory{}

Return

ActionScheduler_Action. An instance of the stored action

Usage

$ActionScheduler_ActionFactory = new ActionScheduler_ActionFactory();
$ActionScheduler_ActionFactory->get_stored_action( $status, $hook, $args, $schedule, $group );
$status(string) (required)
The action's status in the data store
$hook(string) (required)
The hook to trigger when this action runs
$args(array)
Args to pass to callbacks when the hook is triggered
$schedule(ActionScheduler_Schedule)
The action's schedule
$group(string)
A group to put the action in

Code of ActionScheduler_ActionFactory::get_stored_action() WC 5.3.0

<?php
public function get_stored_action( $status, $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' ) {

	switch ( $status ) {
		case ActionScheduler_Store::STATUS_PENDING :
			$action_class = 'ActionScheduler_Action';
			break;
		case ActionScheduler_Store::STATUS_CANCELED :
			$action_class = 'ActionScheduler_CanceledAction';
			if ( ! is_null( $schedule ) && ! is_a( $schedule, 'ActionScheduler_CanceledSchedule' ) && ! is_a( $schedule, 'ActionScheduler_NullSchedule' ) ) {
				$schedule = new ActionScheduler_CanceledSchedule( $schedule->get_date() );
			}
			break;
		default :
			$action_class = 'ActionScheduler_FinishedAction';
			break;
	}

	$action_class = apply_filters( 'action_scheduler_stored_action_class', $action_class, $status, $hook, $args, $schedule, $group );

	$action = new $action_class( $hook, $args, $schedule, $group );

	/**
	 * Allow 3rd party code to change the instantiated action for a given hook, args, schedule and group.
	 *
	 * @param ActionScheduler_Action $action The instantiated action.
	 * @param string $hook The instantiated action's hook.
	 * @param array $args The instantiated action's args.
	 * @param ActionScheduler_Schedule $schedule The instantiated action's schedule.
	 * @param string $group The instantiated action's group.
	 */
	return apply_filters( 'action_scheduler_stored_action_instance', $action, $hook, $args, $schedule, $group );
}