Sets the command names of the built format.
public setCommandNames ( array $commandNames ) : static | ||
$commandNames | array | The command names. |
리턴 | static | The current instance. |
public function testSetCommandNames() { $this->builder->addCommandName($cluster = new CommandName('cluster')); $this->builder->setCommandNames(array($server = new CommandName('server'), $add = new CommandName('add'))); $this->assertSame(array($server, $add), $this->builder->getCommandNames()); }