| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 25 | public static function getSerializedNameAttribute(\ReflectionProperty $rProperty): SerializedName |
|
| 16 | { |
||
| 17 | 25 | return ArrayList::collect(AttributeHelper::getAttributes($rProperty, SerializedName::class)) |
|
| 18 | 25 | ->firstElement() |
|
| 19 | 25 | ->getOrElse(new SerializedName($rProperty->getName())) |
|
| 20 | ; |
||
| 23 |