setArgs() public méthode

public setArgs ( string $args ) : static
$args string the command arguments as string. Note that these will not get escaped!
Résultat static for method chaining
 public function testCanResetArguments()
 {
     $command = new Command();
     $command->addArg('--demo');
     $command->addArg('-name=test');
     $command->setArgs('--arg1=x');
     $this->assertEquals("--arg1=x", $command->getArgs());
 }