/** * Execute this command. * * @return int|void */ protected function doExecute() { $name = $this->getArgument(0); if (!$name) { throw new \Exception('Please enter a profile name.'); } $model = new ProfileModel(); $model->checkout($name); $this->out()->out(sprintf('Checked out to profile "%s".', $name)); }