public function __construct(array $target = array(), array $commands = array()) { $this->setCommands($commands); $commandClass = $this->getCommandClass('select'); $this->command = new $commandClass($target); }