This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+1 -4
View File
@@ -5,6 +5,7 @@
* Date: 2018/4/3 0003
* Time: 15:42
*/
declare(strict_types=1);
namespace validator;
@@ -35,16 +36,12 @@ class DateTimeValidator extends BaseValidator
switch (strtolower($this->method)) {
case self::DATE:
return $this->validatorDate($value);
break;
case self::DATE_TIME:
return $this->validateDatetime($value);
break;
case self::TIME:
return $this->validatorTime($value);
break;
case self::STR_TO_TIME:
return $this->validatorTimestamp($value);
break;
default:
return true;
}