Conditions | 2 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
30 | public static function abstractProtectedMethodsNotSupported(ReflectionClass $reflection) : self |
||
31 | 3 | { |
|
32 | return new self(sprintf( |
||
33 | 3 | 'Provided class "%s" has following protected abstract methods, and therefore cannot be proxied:' . "\n%s", |
|
34 | 3 | $reflection->getName(), |
|
35 | 3 | implode( |
|
36 | 3 | "\n", |
|
37 | 3 | array_map( |
|
38 | 3 | static function (ReflectionMethod $reflectionMethod) : string { |
|
39 | return $reflectionMethod->getDeclaringClass()->getName() . '::' . $reflectionMethod->getName(); |
||
40 | 1 | }, |
|
41 | 3 | array_filter( |
|
42 | 3 | $reflection->getMethods(), |
|
43 | 3 | static function (ReflectionMethod $method) : bool { |
|
44 | return $method->isAbstract() && $method->isProtected(); |
||
45 | 3 | } |
|
46 | 3 | ) |
|
47 | ) |
||
48 | ) |
||
49 | )); |
||
50 | } |
||
51 | } |
||
52 |