Webmozart\Console\Api\Args\Format\ArgsFormatBuilder::getFormat PHP Method

getFormat() public method

Builds a format with the arguments and options added to the builder.
public getFormat ( ) : ArgsFormat
return ArgsFormat The built format.
    public function getFormat()
    {
        return new ArgsFormat($this, $this->baseFormat);
    }

Usage Example

 public function testBuildEmptyDefinition()
 {
     $definition = $this->builder->getFormat();
     $this->assertSame($this->baseFormat, $definition->getBaseFormat());
     $this->assertCount(0, $definition->getArguments());
     $this->assertCount(0, $definition->getOptions());
 }