Webmozart\Console\Api\Config\OptionCommandConfig::getShortName PHP Method

getShortName() public method

Returns the short option name of the command.
public getShortName ( ) : string
return string The short option name.
    public function getShortName()
    {
        return $this->shortName;
    }

Usage Example

 public function testSetShortNameOverwritesPreviousShortName()
 {
     $this->config->setShortName('c');
     $this->config->setShortName('d');
     $this->assertSame('d', $this->config->getShortName());
 }