Lines Matching refs:method
57 foreach ($class->getMethods() as $method) {
58 $code .= $this->generateMethod($method)."\n";
65 private function generateMethod(Node\MethodNode $method) argument
68 $method->getVisibility(),
69 $method->isStatic() ? 'static' : '',
70 $method->returnsReference() ? '&':'',
71 $method->getName(),
72 implode(', ', $this->generateArguments($method->getArguments())),
73 $this->getReturnType($method)
75 $php .= $method->getCode()."\n";
83 private function getReturnType(Node\MethodNode $method) argument
86 if ($method->hasReturnType()) {
87 return $method->hasNullableReturnType()
88 ? sprintf(': ?%s', $method->getReturnType())
89 : sprintf(': %s', $method->getReturnType());
94 return $method->hasReturnType() && $method->getReturnType() !== 'void'
95 ? sprintf(': %s', $method->getReturnType())