public function addCommands(array $commands) { foreach ($commands as $name => $command) { $this->addCommand($command, is_numeric($name) ? null : $name); } return $this; }