Baum\SetValidator::passes PHP Méthode

passes() public méthode

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

Usage Example

Exemple #1
0
 /**
  * Checks wether the underlying Nested Set structure is valid.
  *
  * @return boolean
  */
 public static function isValidNestedSet()
 {
     $validator = new SetValidator(new static());
     return $validator->passes();
 }