public function getQueries($index = null)
    {
        //Argument 1 must be an int string or null
        Argument::i()->test(1, 'int', 'string', 'null');
        
        //if no index
        if (is_null($index)) {
            //return all the queries
            return $this->queries;
        }
        
        //is it the first?
        if ($index == self::FIRST) {
            //index is 0 then
            $index = 0;
        //is it the last?
        } else if ($index == self::LAST) {
            //set index to the last one
            $index = count($this->queries) - 1;
        }
        
        //if we have that record
        if (isset($this->queries[$index])) {
            //return it
            return $this->queries[$index];
        }
        
        return null;
    }
public function getQueries($index = null)
    {
        //Argument 1 must be an int string or null
        Argument::i()->test(1, 'int', 'string', 'null');
        
        //if no index
        if (is_null($index)) {
            //return all the queries
            return $this->queries;
        }
        
        //is it the first?
        if ($index == self::FIRST) {
            //index is 0 then
            $index = 0;
        //is it the last?
        } else if ($index == self::LAST) {
            //set index to the last one
            $index = count($this->queries) - 1;
        }
        
        //if we have that record
        if (isset($this->queries[$index])) {
            //return it
            return $this->queries[$index];
        }
        
        return null;
    }
public function getQueries ( $ index = null ) { //Argument 1 must be an int string or null Argument :: i ( ) -> test ( 1 , 'int' , 'string' , 'null' ) ; //if no index if ( is_null ( $ index ) ) { //return all the queries return $ this -> queries ; } //is it the first? if ( $ index == self :: FIRST ) { //index is 0 then $ index = 0 ; //is it the last? } else if ( $ index == self :: LAST ) { //set index to the last one $ index = count ( $ this -> queries ) - 1 ; } //if we have that record if ( isset ( $ this -> queries [ $ index ] ) ) { //return it return $ this -> queries [ $ index ] ; } return null ; }
Returns the history of queries made still in memory

@param int|string|null $index A particular index to return

@return array|null the queries
Returns the history of queries made still in memory