public function getLastQuery(string $key = null)
    {
        return $key ? $this->profiles['query'][$this->queryCount][$key] ?? null
            : $this->profiles['query'][$this->queryCount] ?? null;
    }
public function getLastQuery(string $key = null)
    {
        return $key ? $this->profiles['query'][$this->queryCount][$key] ?? null
            : $this->profiles['query'][$this->queryCount] ?? null;
    }
public function getLastQuery ( string $ key = null ) { return $ key ? $ this -> profiles [ 'query' ] [ $ this -> queryCount ] [ $ key ] ?? null : $ this -> profiles [ 'query' ] [ $ this -> queryCount ] ?? null ; }
Get last query.
@param  string|null $key
@return array|string|float|null
Get last query .