/** * Set the name of the command from a @command or @name annotation. */ protected function processCommandTag($tag) { $commandName = $this->getTagContents($tag); $this->commandInfo->setName($commandName); // We also store the name in the 'other annotations' so that is is // possible to determine if the method had a @command annotation. $this->commandInfo->addAnnotation($tag->getName(), $commandName); }