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