|
@@ 96-105 (lines=10) @@
|
| 93 |
|
return false; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
public static function getMembersAnnotationWithAnnotation($class, $annotation) { |
| 97 |
|
$props=self::getProperties($class); |
| 98 |
|
$ret=array (); |
| 99 |
|
foreach ( $props as $prop ) { |
| 100 |
|
$annot=self::getAnnotationMember($class, $prop->getName(), $annotation); |
| 101 |
|
if ($annot !== false) |
| 102 |
|
$ret[$prop->getName()]=$annot; |
| 103 |
|
} |
| 104 |
|
return $ret; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public static function getMembersWithAnnotation($class, $annotation) { |
| 108 |
|
$props=self::getProperties($class); |
|
@@ 118-127 (lines=10) @@
|
| 115 |
|
return $ret; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
public static function getMembersNameWithAnnotation($class, $annotation) { |
| 119 |
|
$props=self::getProperties($class); |
| 120 |
|
$ret=array (); |
| 121 |
|
foreach ( $props as $prop ) { |
| 122 |
|
$annot=self::getAnnotationMember($class, $prop->getName(), $annotation); |
| 123 |
|
if ($annot !== false) |
| 124 |
|
$ret[]=$prop->getName(); |
| 125 |
|
} |
| 126 |
|
return $ret; |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
public static function isNullable($class, $member) { |
| 130 |
|
$ret=self::getAnnotationMember($class, $member, "@column"); |