Created
November 14, 2016 20:39
-
-
Save cuonghuynh/bb6a71ec0d43c8270b646f6fd1bd9b1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace App\Support; | |
abstract class AbstractValidator | |
{ | |
protected $errors; | |
/** | |
* handle checking data is valid | |
* @return boolean | |
*/ | |
public abstract function isValid(); | |
/** | |
* Get the errors | |
* @return mixed | |
*/ | |
public function getErrors() | |
{ | |
return $this->errors; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment