Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | public static function nonReferenceableLocalizedReflectionProperties( |
||
32 | ReflectionClass $class, |
||
33 | Properties $properties |
||
34 | ) : self { |
||
35 | return new self(sprintf( |
||
36 | 'Cannot create references for following properties of class %s: %s', |
||
37 | $class->getName(), |
||
38 | implode(', ', array_map(static function (ReflectionProperty $property) : string { |
||
39 | return $property->getName(); |
||
40 | }, $properties->getInstanceProperties())) |
||
41 | )); |
||
42 | } |
||
43 | } |
||
44 |