Lines Matching refs:method
25 foreach ((new ReflectionClass(C::class))->getMethods() as $method) {
26 print $method->getDeclaringClass()->getName() . '::' . $method->getName() . '()' . PHP_EOL;
27 print ' $method->getReturnType() returns ' . get_class($method->getReturnType()) . PHP_EOL;
28 … print ' $method->getReturnType()->__toString() returns ' . $method->getReturnType() . PHP_EOL;
30 if ($method->getReturnType() instanceof ReflectionUnionType) {
31 …print ' $method->getReturnType()->getTypes() returns an array with ' . count($method->getReturn…
37 foreach ($method->getReturnType()->getTypes() as $type) {
50 $method->getReturnType() returns ReflectionNamedType
51 $method->getReturnType()->__toString() returns self
54 $method->getReturnType() returns ReflectionUnionType
55 $method->getReturnType()->__toString() returns stdClass|self
56 $method->getReturnType()->getTypes() returns an array with 2 element(s)
60 $method->getReturnType() returns ReflectionNamedType
61 $method->getReturnType()->__toString() returns static
64 $method->getReturnType() returns ReflectionUnionType
65 $method->getReturnType()->__toString() returns stdClass|static
66 $method->getReturnType()->getTypes() returns an array with 2 element(s)