From caadb452d2ebd674425cf0650a13a6db1d07e045 Mon Sep 17 00:00:00 2001 From: Mathias Elle Date: Fri, 13 Dec 2024 08:31:15 +0100 Subject: [PATCH] Enhance ListThemesCommand: add constructor documentation and improve method comments --- src/Console/Command/ListThemesCommand.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Console/Command/ListThemesCommand.php b/src/Console/Command/ListThemesCommand.php index 872cbd6..e01e6ad 100644 --- a/src/Console/Command/ListThemesCommand.php +++ b/src/Console/Command/ListThemesCommand.php @@ -12,18 +12,33 @@ class ListThemesCommand extends Command { + /** + * Constructor + * + * @param ThemeList $themeList + */ public function __construct( private readonly ThemeList $themeList, ) { parent::__construct(); } + /** + * Configure the command + */ protected function configure(): void { $this->setName('mageforge:themes:list'); $this->setDescription('Lists all available themes'); } + /** + * Execute the command + * + * @param InputInterface $input + * @param OutputInterface $output + * @return int + */ protected function execute( InputInterface $input, OutputInterface $output,