getName() . PHP_EOL; $methods = $reflection->getMethods(ReflectionMethod::IS_PUBLIC); echo "Found " . count($methods) . " public methods:" . PHP_EOL; foreach ($methods as $method) { echo " Method: " . $method->getName() . PHP_EOL; $attributes = $method->getAttributes(); echo " Attributes: " . count($attributes) . PHP_EOL; foreach ($attributes as $attribute) { echo " - " . $attribute->getName() . PHP_EOL; if ($attribute->getName() === 'App\\Framework\\Console\\ConsoleCommand') { echo " ✅ Found ConsoleCommand attribute!" . PHP_EOL; try { $instance = $attribute->newInstance(); echo " Name: " . $instance->name . PHP_EOL; echo " Description: " . $instance->description . PHP_EOL; } catch (Exception $e) { echo " ❌ Error creating instance: " . $e->getMessage() . PHP_EOL; } } } } } catch (Exception $e) { echo "❌ Error reflecting class: " . $e->getMessage() . PHP_EOL; }