original_string: protected function getOptionNotation(OptionInterface $option): string
      {
          $multiple = $option->isMultiple();
          $short = $option->getShort();
          $long = $option->getLong();
          $flag = $option->isFlag();
  
          $notation = '';
          if ($short !== null) {
              $notation .= '-' . $short;
  
              if ($flag === false) {
                  $notation .= '=';
              } elseif ($multiple === true) {
                  $notation .= '+';
              }
          }
  
          if ($long !== null) {
              if (strlen($notation) > 0) {
                  $notation .= '|';
              }
  
              $notation .= '--' . $long;
  
              if ($flag === false) {
                  $notation .= '=';
              } elseif ($multiple === true) {
                  $notation .= '+';
              }
          }
  
          return $notation;
      }
code: protected function getOptionNotation(OptionInterface $option): string
      {
          $multiple = $option->isMultiple();
          $short = $option->getShort();
          $long = $option->getLong();
          $flag = $option->isFlag();
  
          $notation = '';
          if ($short !== null) {
              $notation .= '-' . $short;
  
              if ($flag === false) {
                  $notation .= '=';
              } elseif ($multiple === true) {
                  $notation .= '+';
              }
          }
  
          if ($long !== null) {
              if (strlen($notation) > 0) {
                  $notation .= '|';
              }
  
              $notation .= '--' . $long;
  
              if ($flag === false) {
                  $notation .= '=';
              } elseif ($multiple === true) {
                  $notation .= '+';
              }
          }
  
          return $notation;
      }
code_tokens: protected function getOptionNotation ( OptionInterface $ option ) : string { $ multiple = $ option -> isMultiple ( ) ; $ short = $ option -> getShort ( ) ; $ long = $ option -> getLong ( ) ; $ flag = $ option -> isFlag ( ) ; $ notation = '' ; if ( $ short !== null ) { $ notation .= '-' . $ short ; if ( $ flag === false ) { $ notation .= '=' ; } elseif ( $ multiple === true ) { $ notation .= '+' ; } } if ( $ long !== null ) { if ( strlen ( $ notation ) > 0 ) { $ notation .= '|' ; } $ notation .= '--' . $ long ; if ( $ flag === false ) { $ notation .= '=' ; } elseif ( $ multiple === true ) { $ notation .= '+' ; } } return $ notation ; }
docstring: Get option notation.
  
  @param OptionInterface $option
  @return string
docstring_tokens: Get option notation .