public function passes() { return $this->validateBounds() && $this->validateDuplicates() && $this->validateRoots(); }
/** * Checks wether the underlying Nested Set structure is valid. * * @return boolean */ public static function isValidNestedSet() { $validator = new SetValidator(new static()); return $validator->passes(); }