@param null $key

@return mixed
968999
public function get($key = null)
    {
        if ($key) {

            if (isset($_GET[$key])) {
                return $_GET[$key];
            }

            throw new \InvalidArgumentException(sprintf(
                '%s ist not a valid key for $_GET', $key
            ));

        }

        return $_GET;
    }
1141565
public function get($key=null)
    {

      if ($key == null) {
        return json_decode(file_get_contents(self::$credentials_opts['path']));
      }

      return $this->getVal($key);
    }
921278
public function get($key = null){
        if(null === $key){
            return array_merge($this->_data, $this->_dirty);
        }
        else{
            if(isset($this->_dirty[$key])){
                return $this->_dirty[$key];
            }
            elseif(isset($this->_data[$key])){
                return $this->_data[$key];
            }
            else{
                return null;
            }
        }
    }
727867
public function getParameter($key) {
        if(isset($this->get[$key])) {
            return $this->get[$key];
        }

        return NULL;
    }
140758
public function getDelete($key = null)
    {
        if ($key === null) {
            return $this->delete;
        } else {
            return (isset($this->delete[$key])) ? $this->delete[$key] : null;
        }
    }
411185
public function getHeader($key = null)
    {
        if (is_null($key)) {
            return $this->header;
        }

        return isset($this->header[$key]) ? $this->header[$key] : null;
    }
149279
public function getParamValue($key)
    {
        $value = null;
        if (is_array($param = $this->getParam($key))) {
            $value = $param['value'];
        }

        return $value;
    }
748924
public function returnOriginalData($key = null)
    {
        $this->_prepareData($key);

        $mergedData = array_merge($this->_DATA, $this->_originalDATA);
        $data       = $this->_removeNewKeys($mergedData);

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

        return null;
    }
1248433
public static function get( $key = null ) {
		$configs = self::$configs;
		if ( $key ) {
			$configs = ! empty( self::$configs[ $key ] ) ? self::$configs[ $key ] : null;
		} else {
			$configs = self::$configs;
		}

		return $configs;
	}
1372631
public function getResponseByKey($key)
  {
    return isset($this->responses[$key]) ? $this->responses[$key] : null;
  }
679881
public function get($key = null)
	{
		if (is_null($key))
		{
			return $this->raw();
		}
		return $this->collection->get($key);
	}
294321
public function get($key)
    {
        if (isset($this->_values[$key])) {
            return $this->_values[$key];
        }

        return null;
    }
1050692
public function getValue($key) {
		if (isset ( $this->a [$key] )) {
			return $this->a [$key];
		} else {
			return NULL;
		}
	}
940468
public function get($key)
    {
        $entry = $this->redis->hGet($this->cacheKey, $key);

        if ($entry) {
            $entry = unserialize($entry);

            if ($entry['expire']) {
                // Check expires
                $now = new \DateTime('now', new \DateTimeZone('UTC'));
                if ((int) $now->format('U') > $entry['expire']) {
                    $this->remove($key);

                    return null;
                }
            }

            return $entry['value'];
        }

        return null;
    }
380311
public static function get(string $key = null)
    {
        self::set();

        if (empty($key)) {
            return self::$config;
        }

        $keys  = explode('.', $key);
        $value = self::$config;

        foreach ($keys as $key) {
            if ( ! isset($value[$key])) {
                return null;
            }

            $value = $value[$key];
        }

        return $value;
    }
939575
public function getData($key = null)
    {
        if (null === $key) {
            return $this->data;
        }
        
        $return = $this->data;
        foreach (explode('.', $key) as $subKey) {
            if (isset($return[$subKey])) {
                $return = $return[$subKey];
            } else {
                return null;
            }
        }
        return $return;
    }
262361
public function getPayload($key = null)
    {
        if (is_null($key)) {
            return $this->payload;
        }

        return isset($this->payload[$key]) ? $this->payload[$key] : null;
    }