1 | <?php |
||
5 | final class IsFinalizable |
||
6 | { |
||
7 | /** |
||
8 | * @param \ReflectionClass $class |
||
9 | * @param \ReflectionClass ...$definedClasses |
||
10 | * |
||
11 | * @return bool |
||
12 | */ |
||
13 | 14 | public function __invoke(\ReflectionClass $class, \ReflectionClass ...$definedClasses) |
|
22 | |||
23 | /** |
||
24 | * Checks whether a given class is an invokable, and whether no other methods are implemented on it |
||
25 | * |
||
26 | * @param \ReflectionClass $class |
||
27 | * |
||
28 | * @return bool |
||
29 | */ |
||
30 | 5 | private function isOnlyInvokable(\ReflectionClass $class) |
|
35 | |||
36 | /** |
||
37 | * @param \ReflectionClass $class |
||
38 | * @param \ReflectionClass[] $definedClasses |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | 14 | private function hasChildClasses(\ReflectionClass $class, array $definedClasses) |
|
57 | |||
58 | /** |
||
59 | * Checks whether all methods implemented by $class are defined in |
||
60 | * interfaces implemented by $class |
||
61 | * |
||
62 | * @param \ReflectionClass $class |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | 9 | private function implementsOnlyInterfaceMethods(\ReflectionClass $class) |
|
80 | |||
81 | /** |
||
82 | * @param \ReflectionClass $class |
||
83 | * |
||
84 | * @return string[] (indexed numerically) |
||
85 | */ |
||
86 | 13 | private function getNonConstructorMethodNames(\ReflectionClass $class) |
|
100 | } |
||
101 |