Validating a service call
The power behind validation lies in "constraints", which are rules that you can apply to properties or getter methods of your object.
Finally, class constraints are intended for scenarios where you want to validate a class as a whole.
Storing jservices-aacl-pic-9.6-20090706.0in /var/sw/pkg ... Link: /opt/sdk/jservices-aacl/jservices-aacl-pic - /var/sw/pkg/jservices-aacl-pic-9.6-20090706.0..
Verified jservices-aacl-pic-9.6-20090706.0signed by Package Production_9_6_0 Creating /opt/sdk/jservices-aacl ...
This allows you to move the constraint to a property with the same name later (or vice versa) without changing your validation logic.
constraint is a generic constraint that's applied to the class itself.Behind the scenes, a constraint is simply a PHP object that makes an assertive statement.