2
votes
2answers
75 views

Validator extended to handle domain objects / entities

I started improving my validator library even more, and I think I'm at the last final element (domain object / entity validations) before I can gladly say that my Validator library is completely done ...
6
votes
3answers
431 views

PHP Validation Class

I'm looking for advice and ways on making it better. Code ...
5
votes
2answers
164 views

Is this a good object oriented design for a file validator?

I'm working on a module that downloads a file saves it then validates if the file contents are valid. For simplicity lets assume that the file consists of 3 segments: Header, Body & Footer. Now ...
2
votes
1answer
726 views

How to properly store error messages and display them with OOP?

I have a class that I am using to initialize a form for editing. Once the form is submitted, data validation is done through the setters of my class. Good or bad input will be set in order to ...