Example #1
0
 /**
  * Adds an argument to the method.
  *
  * @param Argument $argument The argument to add.
  *
  * @return static The current instance.
  */
 public function addArgument(Argument $argument)
 {
     $this->arguments[$argument->getName()] = $argument;
     return $this;
 }
Example #2
0
 public function testGetName()
 {
     $this->assertSame('argument', $this->argument->getName());
 }