gets the value of an option in this curl request

@param $key

@return mixed
@throws CurlException
553710
public function getOption($key)
    {
        if (!array_key_exists($key, $this->options)) {
            throw new CurlException('The Options ' . $key . ' is not registered in this CurlRequest');
        }

        return $this->options[$key];
    }
638773
public function get($key)
	{
		if(($key === NULL) || $key === '')
		{
			throw new JSONException('Null key.');
		}
		
		$object = $this->opt($key);
		
		if($object == NULL)
		{
			throw new JSONException('JSONArray[' . JSONObject::quote($key) . '] not found.');
		}
		
		return $object;
	}
605237
protected function fieldValue(string $key)
    {
        return $this->request->input($key)
            ?? $this->request->input("{$this->batchIndex}.{$key}");
    }
395308
public function GetValue($key) {
        $resources = $this->GetList();
        $actionLower = strtolower($this->ActionValue);
        $keyLower = strtolower($key);
        $actionExists = array_key_exists($actionLower, $resources);
        $keyExist = $actionExists ?
                array_key_exists($keyLower, $resources[$actionLower]) :
                false;
        if ($keyExist) {
            return $resources[$actionLower][$keyLower][F_controller_resource::F_CONTROLLER_RESOURCE_VALUE];
        } else {
//            $errMsg = 
//                    "The resource value doesn't exist. Module => " . 
//                    $this->ModuleValue . 
//                    " ; Action => " . 
//                    $this->ActionValue .
//                    "; Key => " . $key;
//            throw new Classes\ResourceNotFoundException($errMsg, ResourceErrors::RESOURCE_VALUE_NOT_FOUND, null);
            return "???";
        }
    }
181290
protected function getOptionOrConfig($key)
    {
        if ($option = $this->option($key)) {
            return $option;
        }

        return $this->config->get("laroute.{$key}");
    }
267077
public function get($key)
    {
        $bucket = $this->locate($key);

        if ($bucket === null) {
            $message = sprintf('Key not found: %s', VarPrinter::toString($key));
            throw new KeyException($message);
        }

        return $bucket->value();
    }
1189073
public static function getOption($key = "") {
		
		if (!empty($key)) {
			$arrayFinder = new ArrayFinder(self::$options);
			return $arrayFinder->get($key);
		}
		
		return false;
		
	}
579964
public function getOption($key = null)
    {
        if (is_null($this->options)) {
            $this->preloadDefaults(true);
        }
        
        return $key === null ? $this->options : $this->options[$key];
    }
1184409
public function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw new \RuntimeException('Mapper: undefined option "' . $key . '"');
        }

        return $this->options[$key];
    }
830206
public function get($key)
    {
        if (!array_key_exists($key, $this->options)) {
            throw new InvalidArgumentException(sprintf('The key %s does not exist.', $key));
        }

        return $this->options[$key];
    }
811660
public function GetValue($key) {
        $resources = $this->GetList();
        $keyExist = array_key_exists($key, $resources);
        if ($keyExist) {
            return $resources[$key][\Puzzlout\Framework\BO\F_common_resource::F_COMMON_RESOURCE_VALUE];
        } else {
//      throw new \Puzzlout\Framework\Exceptions\ResourceNotFoundException(
//      "The resource value doesn't exist for Group => " . $this->GroupValue . " and Key => " . $key, 0, null);
            return "???";
        }
    }
585230
public function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw InvalidOptionException::build([], ['option' => $key]);
        }

        return $this->options[$key];
    }
1094328
public static function getOption(string $key)
    {
        if (\array_key_exists($key, static::$options)) {
            return static::$options[$key];
        }

        static::validateOptions([$key => '']);
        static::$options[$key] = \ini_get('session.' . $key);

        if ($key === 'save_path' && empty(static::$options[$key])) {
            static::$options[$key] = '/tmp';
        }

        return static::$options[$key];
    }
1015197
public static function pull($key)
    {
        if (isset($_SESSION[self::$prefix . $key])) {
            $value = $_SESSION[self::$prefix . $key];
            unset($_SESSION[self::$prefix . $key]);

            return $value;
        }

        return null;
    }
117844
protected function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw new Exception\RuntimeException(sprintf(
                'Option "%s" not found',
                $key
            ));
        }

        return $this->options[$key];
    }
684381
public function getValue($key){
		$this->loadCurrent();
		
		return $this->translator->getValue($this->current, $this->document, $key);
	}
129639
public function get($key)
    {
        $keys = explode('::', $key);
        if (\count($keys) >= 2) {
            $section = $keys[0];
            $option = $keys[1];
        } else {
            $section = self::DEFAULT_SECTION;
            $option = $keys[0];
        }

        return isset($this->data[$section][$option]) ? $this->data[$section][$option] : '';
    }