Lines Matching refs:method
98 foreach ($class->getMethods(ReflectionMethod::IS_ABSTRACT) as $method) {
99 if (false === $method->isProtected()) {
103 $this->reflectMethodToNode($method, $node);
106 foreach ($class->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
107 if (0 === strpos($method->getName(), '_')
108 && !in_array($method->getName(), self::$reflectableMethods)) {
112 if (true === $method->isFinal()) {
113 $node->addUnextendableMethod($method->getName());
117 $this->reflectMethodToNode($method, $node);
125 foreach ($interface->getMethods() as $method) {
126 $this->reflectMethodToNode($method, $node);
130 private function reflectMethodToNode(ReflectionMethod $method, Node\ClassNode $classNode) argument
132 $node = new Node\MethodNode($method->getName());
134 if (true === $method->isProtected()) {
138 if (true === $method->isStatic()) {
142 if (true === $method->returnsReference()) {
146 if (version_compare(PHP_VERSION, '7.0', '>=') && $method->hasReturnType()) {
147 $returnType = (string) $method->getReturnType();
151 $returnType = $method->getDeclaringClass()->getName();
154 $returnType = $method->getDeclaringClass()->getParentClass()->getName();
159 … if (version_compare(PHP_VERSION, '7.1', '>=') && $method->getReturnType()->allowsNull()) {
164 if (is_array($params = $method->getParameters()) && count($params)) {