src/Database/NestedSet/Builder.php
public function getNodeData($id, $required = FALSE)
    {
        $query = $this->toBase();

        $query->where($this->model->getKeyName(), '=', $id);

        $data = $query->first([$this->model->getLftName(),
            $this->model->getRgtName()]);

        if (!$data && $required) {
            throw new ModelNotFoundException;
        }

        return (array)$data;
    }
public function getNodeData($id, $required = FALSE)
    {
        $query = $this->toBase();

        $query->where($this->model->getKeyName(), '=', $id);

        $data = $query->first([$this->model->getLftName(),
            $this->model->getRgtName()]);

        if (!$data && $required) {
            throw new ModelNotFoundException;
        }

        return (array)$data;
    }
Get node's `lft` and `rgt` values.

@since 2.0

@param mixed $id
@param bool $required

@return array