GetOptionKit\OptionCollection::getLongOption PHP Method

getLongOption() public method

public getLongOption ( $name )
    public function getLongOption($name)
    {
        return isset($this->longOptions[$name]) ? $this->longOptions[$name] : null;
    }

Usage Example

 public function testAddOption()
 {
     $opts = new OptionCollection();
     $opts->add($o = new Option('v|verbose'));
     $this->assertSame($o, $opts->getLongOption('verbose'));
     $this->assertSame($o, $opts->getShortOption('v'));
 }