limoncello-php / framework

Apache License 2.0
13 stars 1 forks source link

[Validation] Refactor date time and required / null methods #24

Closed neomerx closed 8 years ago

neomerx commented 8 years ago

Currently date time could be validated as string value. Add a method for validation it as PHP DateTime class as well.

It's very often to have nullabe and required methods in validation. Add wrapper methods for such operations. It will require renaming for required to isRequired to be consistent with nullable / required and isNull / isRequired pairs.