getArgument() public method

You can either pass the name of the argument or the 0-based position of the argument.
public getArgument ( string | integer $name, boolean $includeBase = true ) : Argument
$name string | integer The argument name or its 0-based position in the argument list.
$includeBase boolean Whether to include arguments in the base format in the search.
return Argument The argument.
コード例 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetArgumentFailsIfIncludeBaseNoBoolean()
 {
     $this->builder->getArgument('argument', 1234);
 }