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