private function isPropertyMethod($method) { $methodName = $method->getName(); return $method->getNumberOfRequiredParameters() === 0 && strncasecmp($methodName, 'get', 3) === 0 && isset($methodName[3]); }