Gets value from options

@var string $option
@return string value
@throws \Exception
329844
public function getOption($option)
    {
        if (!isset($this->options[$option])) {
            throw new \Exception('This option does not exist');
        }

        return $this->options[$option];
    }
620958
public function get(string $key)
    {
        if (isset($this->App->Config->§options[$key])) {
            return $this->App->Config->§options[$key];
        } // Optimized. Values CAN be `null` however.

        // Else if the key does not exist at all, throw exception.
        if (!array_key_exists($key, $this->App->Config->§options)) {
            throw $this->c::issue(sprintf('Unknown option key: `%1$s`.', $key));
        }
        return null; // Default return value.
    }
834118
public function getOption($option)
    {
        if (!empty($this->options->{$option})) {
            return $this->options->{$option};
        }

        return false;
    }
1063906
public function getOption($option)
    {
        if (isset($this->option[$option])) {
            $this->resultCode = Memcached::RES_SUCCESS;
            $this->resultMessage = '';
            return $this->option[$option];

        } else {
            $this->resultCode = Memcached::RES_FAILURE;
            $this->resultMessage = 'Option not seted.';
            return false;
        }
    }
1102413
final protected function getOptions($option = null)
    {
        if (null !== $option) {
            if (array_key_exists($option, self::$_options)) {
                return self::$_options[$option];
            } else {
                return false;
            }
        }

        return self::$_options;
    }
468691
public function getOption($option)
    {
        return isset($this->getOptions()[$option]) ? $this->getOptions()[$option] : null;
    }
748740
public function get($option, $printOut = '%s', $defaultOptionValue = null)
    {
        if ($value = $this->getOption($option, $defaultOptionValue)) {
            if (is_array($value) || is_object($value)) {
                return $value;
            }

            return sprintf($printOut, $value);
        }

        return;
    }
686145
public function get($option, $default = false)
    {
        return isset($this->options[$option]) ? $this->options[$option] : $default;
    }
243335
public function getOption($option)
    {
        if ($this->_link) {
            if (defined($option)) {
                if (@ldap_get_option($this->_link, constant($option), $value)) {
                    return $value;
                } else {
                    $err = @ldap_errno($this->_link);
                    if ($err) {
                        $msg = @ldap_err2str($err);
                    } else {
                        $err = NET_LDAP2_ERROR;
                        $msg = Net_LDAP2::errorMessage($err);
                    }
                    return $this->raiseError($msg, $err);
                }
            } else {
                $this->raiseError("Unkown Option requested");
            }
        } else {
            $this->raiseError("No LDAP connection");
        }
    }
1081292
public function getOption(string $ref)
    {
        $properties     = $this->getProperties();
        $optionsPath    = $properties['optionsPath'];

        if (!array_key_exists($ref, $optionsPath)) { throw new Exception("Référence d'option $ref inconnue"); }

        $pathOption     = $optionsPath[$ref];
        $pathOption     = explode('-', $pathOption);
        $optionsTree    = $properties['optionsTree'];

        return $this->findOption($pathOption, $optionsTree);
    }
1164010
public function getOption($optionName)
    {
        if (!array_key_exists($optionName, $this->supportedOptions)) {
            throw new \Neos\Flow\Mvc\Exception(sprintf('The view option "%s" you\'re trying to get doesn\'t exist in class "%s".', $optionName, get_class($this)), 1359625876);
        }

        return $this->options[$optionName];
    }
231161
public function getValue()
    {
        if (isset($this->_value)) {
            //This is a final option
            return $this->_value;
        } elseif (!empty($this->_childs)) {
            //The option value is an array
            $result = array();
            foreach ($this->_childs as $key => $value) {
                $result[$key] = $value->getValue();
            }
            return $result;
        }
        return null;
    }
1284123
public function get($option)
    {
        return (isset($this->options[$option]) ? $this->options[$option] : null);
    }
946809
public function getOption($option, $default = null)
    {
        if (array_key_exists($option, $this->options)) {
            return $this->options[$option];
        }
        return $default;
    }
954683
private function getOptionNames(Option $option) : string
    {
        $optionNames = "--{$option->getName()}";

        if ($option->getShortName() !== null) {
            $optionNames .= "|-{$option->getShortName()}";
        }

        return $optionNames;
    }
1173833
public function getInfo($option)
    {
        if (array_key_exists($option, $this->info)) {
            return $this->info[$option];
        }

        throw new \DomainException("Option {$option} not found.");
    }
1314395
public function getValue() : ?string
    {
        foreach ($this->getOptions() as $option) {
            if ($option->isSelected()) {
                return $option->getValue();
            }
        }

        return null;
    }