|
@@ 97-106 (lines=10) @@
|
| 94 |
|
return $ret; |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
public static function getMembersWithAnnotation($class,$annotation){ |
| 98 |
|
$props=self::getProperties($class); |
| 99 |
|
$ret=array(); |
| 100 |
|
foreach ($props as $prop){ |
| 101 |
|
$annot=self::getAnnotationMember($class, $prop->getName(), $annotation); |
| 102 |
|
if($annot!==false) |
| 103 |
|
$ret[]=$prop; |
| 104 |
|
} |
| 105 |
|
return $ret; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public static function getMembersNameWithAnnotation($class,$annotation){ |
| 109 |
|
$props=self::getProperties($class); |
|
@@ 108-117 (lines=10) @@
|
| 105 |
|
return $ret; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public static function getMembersNameWithAnnotation($class,$annotation){ |
| 109 |
|
$props=self::getProperties($class); |
| 110 |
|
$ret=array(); |
| 111 |
|
foreach ($props as $prop){ |
| 112 |
|
$annot=self::getAnnotationMember($class, $prop->getName(), $annotation); |
| 113 |
|
if($annot!==false) |
| 114 |
|
$ret[]=$prop->getName(); |
| 115 |
|
} |
| 116 |
|
return $ret; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public static function isNullable($class,$member){ |
| 120 |
|
$ret=self::getAnnotationMember($class,$member,"@column"); |