public function last($data)
    {
        if ( !is_array($data) && !is_object($data) && !is_null($data) ) {

            if ( !isset($this->cache['L']) ) {

                $hash = md5($data);

                if (empty($this->dict['L'])) {
                    $this->dict['L'] = $hash;
                    $res = false;
                } elseif ($this->dict['L'] !== $hash) {
                    $this->dict['L'] = $hash;
                    $res = true;
                } else {
                    $res = false;
                }

                $this->cache['L'] = $res;
            }

            return $this->cache['L'];
        }

        $this->data = $data;
        $this->branch = 'L';
        $this->vars = array();
        return $this;
    }
public function last($data)
    {
        if ( !is_array($data) && !is_object($data) && !is_null($data) ) {

            if ( !isset($this->cache['L']) ) {

                $hash = md5($data);

                if (empty($this->dict['L'])) {
                    $this->dict['L'] = $hash;
                    $res = false;
                } elseif ($this->dict['L'] !== $hash) {
                    $this->dict['L'] = $hash;
                    $res = true;
                } else {
                    $res = false;
                }

                $this->cache['L'] = $res;
            }

            return $this->cache['L'];
        }

        $this->data = $data;
        $this->branch = 'L';
        $this->vars = array();
        return $this;
    }
public function last ( $ data ) { if ( ! is_array ( $ data ) && ! is_object ( $ data ) && ! is_null ( $ data ) ) { if ( ! isset ( $ this -> cache [ 'L' ] ) ) { $ hash = md5 ( $ data ) ; if ( empty ( $ this -> dict [ 'L' ] ) ) { $ this -> dict [ 'L' ] = $ hash ; $ res = false ; } elseif ( $ this -> dict [ 'L' ] !== $ hash ) { $ this -> dict [ 'L' ] = $ hash ; $ res = true ; } else { $ res = false ; } $ this -> cache [ 'L' ] = $ res ; } return $ this -> cache [ 'L' ] ; } $ this -> data = $ data ; $ this -> branch = 'L' ; $ this -> vars = array ( ) ; return $ this ; }
Checks if the data passed is the last one in a group

@param mixed $data   The data to evaluate

@return Mixed    True if the last item in the group, false if not and
this same object if the path is not finished
Checks if the data passed is the last one in a group