Short description of method getOption

@access public
@author Bertrand Chevrier, <bertrand.chevrier@tudor.lu>
@param  string key
@return string
770309
public function getOption($key)
    {
        if ($key == 'tag') {
            return $this->tag;
        } elseif (isset($this->attributes[$key])) {
            return $this->attributes[$key];
        } else {
            return '';
        }
    }
832233
public static function getOpt($key, $default = null)
    {
        if (array_key_exists($key, self::$current)) {
            return self::$current[$key];
        }
        if (array_key_exists($key, self::$opts)) {
            return self::$opts[$key];
        }
        return $default;
    }
258841
public function getOption($key, $default = null)
    {
        $option = $this->getAttribute('options');

        if (! is_array($option)) {
            $option = [];
        }

        if (array_key_exists($key, $option)) {
            return $option[$key];
        }

        return $default;
    }
1184409
public function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw new \RuntimeException('Mapper: undefined option "' . $key . '"');
        }

        return $this->options[$key];
    }
1025309
public function getOption($name = '')
    {
        if ('' === $name) {
            return $this->option;
        }

        return isset($this->option[$name]) ? $this->option[$name] : null;
    }
1167696
public function getConfigurationValue($key)
    {
        $configuration = $this->getConfiguration();

        $pathParts = explode(self::DELIMITER, $key);
        foreach ($pathParts as $pathPart) {
            if (isset($configuration[ucfirst($pathPart)]) === true) {
                $configuration = $configuration[ucfirst($pathPart)];
            } else {
                $configuration = null;
            }
        }

        return $configuration;
    }
1347008
protected function readOption(string $key, $fallback = null)
    {
        $value = get_option($this->prefix . $key, $fallback ?? false);
        if (false === $value) {
            return $fallback;
        }

        return $value;
    }
727341
public function getOption($key)
    {
        $this->checkOptionKey($key);

        return isset($this->_options[$key]) ? $this->_options[$key] : $this->defaultOptions[$key];
    }
1111284
public function getOption($option) {
		if ($option instanceOf Argument) {
			$obj = $option;
			$option = $option->value;
		}

		if (isset($this->_options[$option])) {
			return $this->_options[$option];
		}

		foreach ($this->_options as $master => $settings) {
			if (in_array($option, (array)$settings['aliases'])) {
				if (isset($obj)) {
					$obj->key = $master;
				}

				return $settings;
			}
		}
	}
1366879
public function getOption(string $key)
    {
        if (array_key_exists($key, $this->options)) {
            return $this->options[$key];
        }

        throw new Exception('Invalid option key "' . $key . '".', Exception::INVALID_OPTION);
    }
579964
public function getOption($key = null)
    {
        if (is_null($this->options)) {
            $this->preloadDefaults(true);
        }
        
        return $key === null ? $this->options : $this->options[$key];
    }
232420
public function opt($key)
	{
		if($key === NULL || $key === '' || !array_key_exists($key, $this->map))
		{
			return NULL;
		}
		else
		{
			return $this->map[$key];
		}
	}
738898
public function getOption($key)
    {
        if (!$this->hasOption($key)) {
            throw new Exception\InvalidArgumentException(
                "Option " . $key . " not defined on "
                . $this->reflection->getClassName() . "::$"
                . $this->name . "!"
            );
        }
        return $this->options[$key];
    }
1080280
private function getQueryOptions(/* $key, ... */)
    {
        return array_filter(
            array_intersect_key($this->query, array_flip(func_get_args())),
            function($value) { return $value !== null; }
        );
    }
1189073
public static function getOption($key = "") {
		
		if (!empty($key)) {
			$arrayFinder = new ArrayFinder(self::$options);
			return $arrayFinder->get($key);
		}
		
		return false;
		
	}
927456
public function find(string $key): Option
    {
        foreach ($this->repositories as $repository) {
            if ($repository->has($key)) {
                return $repository->find($key);
            }
        }

        throw UnknownOptionKey::fromKey($key);
    }
585230
public function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw InvalidOptionException::build([], ['option' => $key]);
        }

        return $this->options[$key];
    }