Baum\SetValidator::passes PHP 메소드

passes() 공개 메소드

Determine if the validation passes.
public passes ( ) : boolean
리턴 boolean
    public function passes()
    {
        return $this->validateBounds() && $this->validateDuplicates() && $this->validateRoots();
    }

Usage Example

예제 #1
0
파일: Node.php 프로젝트: lostcause/baum
 /**
  * Checks wether the underlying Nested Set structure is valid.
  *
  * @return boolean
  */
 public static function isValidNestedSet()
 {
     $validator = new SetValidator(new static());
     return $validator->passes();
 }