| @@ 59-68 (lines=10) @@ | ||
| 56 | return false; |
|
| 57 | } |
|
| 58 | ||
| 59 | public static function getMembersWithAnnotation($class,$annotation){ |
|
| 60 | $props=self::getProperties($class); |
|
| 61 | $ret=array(); |
|
| 62 | foreach ($props as $prop){ |
|
| 63 | $annot=self::getAnnotationMember($class, $prop->getName(), $annotation); |
|
| 64 | if($annot!==false) |
|
| 65 | $ret[]=$prop; |
|
| 66 | } |
|
| 67 | return $ret; |
|
| 68 | } |
|
| 69 | ||
| 70 | public static function getMembersNameWithAnnotation($class,$annotation){ |
|
| 71 | $props=self::getProperties($class); |
|
| @@ 70-79 (lines=10) @@ | ||
| 67 | return $ret; |
|
| 68 | } |
|
| 69 | ||
| 70 | public static function getMembersNameWithAnnotation($class,$annotation){ |
|
| 71 | $props=self::getProperties($class); |
|
| 72 | $ret=array(); |
|
| 73 | foreach ($props as $prop){ |
|
| 74 | $annot=self::getAnnotationMember($class, $prop->getName(), $annotation); |
|
| 75 | if($annot!==false) |
|
| 76 | $ret[]=$prop->getName(); |
|
| 77 | } |
|
| 78 | return $ret; |
|
| 79 | } |
|
| 80 | } |
|
| 81 | ||