/**
* Получает список параметров для которых определена аннотация $ann_name
* @param mixed $object
* @param callable $cb function($annotation_class,$propery_name){}
*/
public function getFields($object, $annotation_class, callable $cb)
{
$reflClass = new \ReflectionClass($object);
$props = $reflClass->getProperties();
foreach ($props as $prop) {
$annotation = $this->annotation_reader->getPropertyAnnotation($prop, $annotation_class);
if (is_null($annotation)) {
continue;
}
$cb($annotation, $prop->name);
}
}