Skip to content

Commit

Permalink
Removes errors and conditions. Useful to use the library as an Assert…
Browse files Browse the repository at this point in the history
…ion library.
  • Loading branch information
nilportugues committed Oct 1, 2015
1 parent 97c6aca commit ea8c23d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,13 @@ public function getErrors()
{
return $this->errors;
}

/**
* Removes errors and conditions. Useful to use the library as an Assertion library.
*/
public function reset()
{
$this->errors = [];
$this->conditions = [];
}
}

0 comments on commit ea8c23d

Please sign in to comment.