16 public function parse($modelClass) {
17 $instance=
new $modelClass();
18 $properties=Reflexion::getProperties($instance);
19 foreach ( $properties as $property ) {
20 $propName=$property->getName();
21 $annots=Reflexion::getAnnotationsMember($modelClass, $propName,
'validator');
22 if(\count($annots)>0){
23 $this->validators[$propName]=[];
24 foreach ($annots as $annotation){
25 $this->validators[$propName][]=$annotation->getPropertiesAndValues();