public static function generateStepItem($context = null, $callback = null)
    {
        return new class ($context, $callback) {
            public $context;
            public $callback;
            
            public function __construct($context, $callback)
            {
                $this->context  = $context;
                $this->callback = $callback;
            }
        };
    }
public static function generateStepItem($context = null, $callback = null)
    {
        return new class ($context, $callback) {
            public $context;
            public $callback;
            
            public function __construct($context, $callback)
            {
                $this->context  = $context;
                $this->callback = $callback;
            }
        };
    }
public static function generateStepItem ( $ context = null , $ callback = null ) { return new class ( $ context , $ callback ) { public $ context ; public $ callback ; public function __construct ( $ context , $ callback ) { $ this -> context = $ context ; $ this -> callback = $ callback ; } } ; }
Generate the anonymous class with the structure to use for each item

@param mixed $context The context to add to the notify
@param callable|null $callback The callback to call when
the task is runned

@return object
Generate the anonymous class with the structure to use for each item