getOptions() public method

Returns all options added to the builder.
public getOptions ( boolean $includeBase = true ) : Option[]
$includeBase boolean Whether to include options of the base format in the result.
return Option[] The options.
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetOptionsFailsIfIncludeBaseNoBoolean()
 {
     $this->builder->getOptions(1234);
 }
Esempio n. 2
0
 /**
  * Returns the configured options.
  *
  * Read {@link Option} for a more detailed description of console options.
  *
  * @return Option[] The configured options.
  *
  * @see addOption()
  */
 public function getOptions()
 {
     return $this->formatBuilder->getOptions();
 }