Lines Matching refs:method

215             foreach ($methods as $method) {
216 if (!preg_match('~[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*~', $method)) {
220 $method
385 foreach ($reflector->getMethods() as $method) {
386 if ($method->isAbstract() && !in_array($method->getName(), $methods)) {
387 $methods[] = $method->getName();
613 foreach ($_methods as $method) {
614 $nameStart = strpos($method, ' ') + 1;
615 $nameEnd = strpos($method, '(');
616 $name = substr($method, $nameStart, $nameEnd - $nameStart);
622 $method,
624 strpos($method, ')') - $nameEnd - 1
720 foreach ($this->getClassMethods($_type) as $method) {
721 if (in_array($method, $methods)) {
725 $method
730 $methodReflections[$method] = $typeClass->getMethod($method);
731 $methods[] = $method;
820 $method = $class->getMethod($methodName);
822 if ($this->canMockMethod($method)) {
825 $method,
861 $method = '';
866 $method = $methodTemplate->render();
881 'method' => $method,
980 * @param ReflectionMethod $method
986 …nerateMockedMethodDefinitionFromExisting($templateDir, ReflectionMethod $method, $cloneArguments, … argument
988 if ($method->isPrivate()) {
990 } elseif ($method->isProtected()) {
996 if ($method->isStatic()) {
1000 if ($method->returnsReference()) {
1006 if ($this->hasReturnType($method)) {
1007 $returnType = (string) $method->getReturnType();
1012 …if (preg_match('#\*[ \t]*+@deprecated[ \t]*+(.*?)\r?+\n[ \t]*+\*(?:[ \t]*+@|/$)#s', $method->getDo…
1020 $method->getDeclaringClass()->getName(),
1021 $method->getName(),
1024 $this->getMethodParameters($method),
1025 $this->getMethodParameters($method, true),
1029 $method->isStatic(),
1031 $this->allowsReturnNull($method)
1112 * @param ReflectionMethod $method
1116 private function canMockMethod(ReflectionMethod $method) argument
1118 if ($method->isConstructor() ||
1119 $method->isFinal() ||
1120 $method->isPrivate() ||
1121 $this->isMethodNameBlacklisted($method->getName())) {
1153 * @param ReflectionMethod $method
1162 private function getMethodParameters(ReflectionMethod $method, $forCall = false) argument
1166 foreach ($method->getParameters() as $i => $parameter) {
1208 $method->getDeclaringClass()->getName(),
1209 $method->getName()
1266 * @param ReflectionMethod $method
1270 private function hasReturnType(ReflectionMethod $method) argument
1272 return method_exists(ReflectionMethod::class, 'hasReturnType') && $method->hasReturnType();
1276 * @param ReflectionMethod $method
1280 private function allowsReturnNull(ReflectionMethod $method) argument
1284 && $method->hasReturnType()
1285 && $method->getReturnType()->allowsNull();
1300 foreach ($class->getMethods() as $method) {
1301 if ($method->isPublic() || $method->isAbstract()) {
1302 $methods[] = $method->getName();