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

setPreferLongName() public method

This information is mainly used in the help where the preferred name is listed before alternative names.
public setPreferLongName ( ) : static
return static The current instance.
    public function setPreferLongName()
    {
        $this->longNamePreferred = true;
        return $this;
    }

Usage Example

コード例 #1
0
 public function testSetPreferLongName()
 {
     $this->config->setPreferLongName();
     $this->assertTrue($this->config->isLongNamePreferred());
     $this->assertFalse($this->config->isShortNamePreferred());
 }