public function add(\Strukt\Console\Command $command){

		$class = get_class($command);
		$docBlockParser = new \Strukt\Console\DocBlockParser($class);
		$docList = $docBlockParser->parse();

		$cmdAlias = $docList["command"]["alias"];
		$this->commands[$cmdAlias]["object"] = $command;
		$this->commands[$cmdAlias]["docparser"] = $docBlockParser;
		$this->commands[$cmdAlias]["doclist"] = $docList;

		if($this->padlen == 0 || strlen($docList["command"]["alias"]) > $this->padlen)
			$this->padlen = strlen($docList["command"]["alias"]);
	}
public function add(\Strukt\Console\Command $command){

		$class = get_class($command);
		$docBlockParser = new \Strukt\Console\DocBlockParser($class);
		$docList = $docBlockParser->parse();

		$cmdAlias = $docList["command"]["alias"];
		$this->commands[$cmdAlias]["object"] = $command;
		$this->commands[$cmdAlias]["docparser"] = $docBlockParser;
		$this->commands[$cmdAlias]["doclist"] = $docList;

		if($this->padlen == 0 || strlen($docList["command"]["alias"]) > $this->padlen)
			$this->padlen = strlen($docList["command"]["alias"]);
	}
public function add ( \ Strukt \ Console \ Command $ command ) { $ class = get_class ( $ command ) ; $ docBlockParser = new \ Strukt \ Console \ DocBlockParser ( $ class ) ; $ docList = $ docBlockParser -> parse ( ) ; $ cmdAlias = $ docList [ "command" ] [ "alias" ] ; $ this -> commands [ $ cmdAlias ] [ "object" ] = $ command ; $ this -> commands [ $ cmdAlias ] [ "docparser" ] = $ docBlockParser ; $ this -> commands [ $ cmdAlias ] [ "doclist" ] = $ docList ; if ( $ this -> padlen == 0 || strlen ( $ docList [ "command" ] [ "alias" ] ) > $ this -> padlen ) $ this -> padlen = strlen ( $ docList [ "command" ] [ "alias" ] ) ; }
Add commands to console application

Utiliese {@link DocBlockParser} to extract documentation
from command class

@param \Strukt\Console\Command $command

@return void
Add commands to console application