public function insertAfterMethod($class, $methodName, $method) { $line = $this->analyser->getEndLineOfNamedMethod($class, $methodName); return $this->insertStringAfterLine($class, $method, $line); }