Get received request

@param null $key

@return mixed
512384
private function getReceivedData($key = null)
    {
        $received = self::$received;

        if ($key !== null) {
            if (is_array($received) && isset($received[$key])) {
                return $received[$key];
            }

            if (isset($received->$key)) {
                return $received->$key;
            }

            return null;
        }

        return is_object($received) ? (array)$received : $received;
    }
377157
public function get($key)
    {
        //        return $this->claims['data'][$key] ?? null;

        if (isset($this->claims['data'][$key])) {
            return $this->claims['data'][$key];
        } else {
            return null;
        }
    }
932520
public static function get($key = null)
    {
        if (null === self::$instance) {
            self::$instance = new self();
        }

        return $key ? self::$instance[$key] : self::$instance;
    }
1084034
public function getStash(?string $key = null)
    {
        $content = json_decode(file_get_contents($this->temp()), true);

        return $key ? (isset($content[$key]) ? $content[$key] : null) : $content;
    }
168433
public function get($key){

		if(!is_null($this->args))
			if(in_array($key, array_keys($this->args)))
				return $this->args[$key];

		return null;
	}
1285567
public function request( $key = null, $default = null ) {
		return func_num_args() === 0 ? $_REQUEST : $this->app->utility->array_get( $_REQUEST, $key, $default );
	}
1041258
public function get_data($key) {
        if (isset($this->data->$key)) {
            return $this->data->$key;
        }
        return null;
    }
692420
public function get($key = null)
    {
        trigger_error(__METHOD__.' is deprecated.', E_USER_DEPRECATED);

        if (0 === func_num_args()) {
            return $this->data();
        } else {
            return $this->data($key);
        }
    }
915604
public function getInfo($key = null)
    {
        $info = $key
            ? curl_getinfo($this->curlHandler, $key)
            : curl_getinfo($this->curlHandler);
        return $info;
    }
58371
public function get($key = null)
    {
        //argument 1 must be a string or null
        Argument::i()->test(1, 'string', 'null');

        if (is_null($key)) {
            return $_COOKIE;
        }

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

        return null;
    }
948351
public function get($key)
    {
        $value = $this->connection()->get($this->prefix.$key);

        return ! is_null($value) ? $this->unserialize($value) : null;
    }
970276
public function get($key = null)
    {
        //argument 1 must be a string or null
        Argument::i()->test(1, 'string', 'null');

        if (!self::$session) {
            Exception::i()->setMessage(self::ERROR_NOT_STARTED)->trigger();
        }

        if (is_null($key)) {
            return $_SESSION;
        }

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

        return null;
    }
518754
public function get($key) {
        $filename = $this->generateFileLocation($key);
        if (file_exists($filename) && is_readable($filename)) {
            $cache = unserialize(file_get_contents($filename));
            if ($cache['expires'] > time()) {
                return $cache['content'];
            } else {
                unlink($filename);
            }
        }
        return null;
    }
681220
public function server($key = NULL)
    {
        if ( !$key ) {
            return $this->server->all();
        }

        return $this->server->get($key);
    }
667117
public function getInfo( $key = NULL )
	{
		if( !$this->info )
			throw new RuntimeException( "No Request has been sent, yet." );
		if( empty( $key ) )
			return $this->info;
		else if( isset( $this->info[$key] ) )
			return $this->info[$key];
		else
			return NULL;
	}
665904
public function get($key = null)
    {
        if (null === $key) {
            return $this->get;
        }

        return isset($this->get[$key]) ? $this->get[$key] : null;
    }
422863
public function get($key)
    {
        if (empty($this->data[$key]) === true) {
            return null;
        }

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