$signature, 'closure' => $command, ]), static function ($handler) { $handlerId = spl_object_hash($handler); self::$commands[$handlerId] = $handler; }); } /** * @return ClosureCommand[] */ public static function getCommands(): array { return self::$commands; } }