original_string: public function getOption($name)
      {
          if (!array_key_exists($name, $this->commandOptions)) {
              return null;
          }
  
          $option = $this->commandOptions[$name];
  
          if ($option->hasBeenProvided() && $option->getProvidedValue() === null && $option->getDefaultValue() === null) {
              return true;
          }
  
          return $option->getValue();
      }
code: public function getOption($name)
      {
          if (!array_key_exists($name, $this->commandOptions)) {
              return null;
          }
  
          $option = $this->commandOptions[$name];
  
          if ($option->hasBeenProvided() && $option->getProvidedValue() === null && $option->getDefaultValue() === null) {
              return true;
          }
  
          return $option->getValue();
      }
code_tokens: public function getOption ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> commandOptions ) ) { return null ; } $ option = $ this -> commandOptions [ $ name ] ; if ( $ option -> hasBeenProvided ( ) && $ option -> getProvidedValue ( ) === null && $ option -> getDefaultValue ( ) === null ) { return true ; } return $ option -> getValue ( ) ; }
docstring: Returns null if the value doesn't exist. Otherwise, it's whatever was passed to it or set
  as a default value.
  
  @param string $name
  
  @return mixed|null
docstring_tokens: Returns null if the value doesn t exist . Otherwise it s whatever was passed to it or set as a default value .