Commit e1c89285 by Taylor Otwell

added passes and fails method to validtor.

parent 642b0f17
...@@ -122,6 +122,26 @@ class Validator { ...@@ -122,6 +122,26 @@ class Validator {
* *
* @return bool * @return bool
*/ */
public function passes()
{
return $this->valid();
}
/**
* Validate the target array using the specified validation rules.
*
* @return bool
*/
public function fails()
{
return $this->invalid();
}
/**
* Validate the target array using the specified validation rules.
*
* @return bool
*/
public function invalid() public function invalid()
{ {
return ! $this->valid(); return ! $this->valid();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment