|
@@ 27-33 (lines=7) @@
|
| 24 |
|
return self::$modelsMetadatas[$className]; |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
public static function isSerializable($class, $member) { |
| 28 |
|
$ret=self::getAnnotationInfo($class, "#notSerializable"); |
| 29 |
|
if ($ret !== false) |
| 30 |
|
return \array_search($member, $ret) === false; |
| 31 |
|
else |
| 32 |
|
return true; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
public static function isNullable($class, $member) { |
| 36 |
|
$ret=self::getAnnotationInfo($class, "#nullable"); |
|
@@ 35-41 (lines=7) @@
|
| 32 |
|
return true; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
public static function isNullable($class, $member) { |
| 36 |
|
$ret=self::getAnnotationInfo($class, "#nullable"); |
| 37 |
|
if ($ret !== false) |
| 38 |
|
return \array_search($member, $ret) !== false; |
| 39 |
|
else |
| 40 |
|
return false; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public static function getFieldName($class, $member) { |
| 44 |
|
$ret=self::getAnnotationInfo($class, "#fieldNames"); |