protected function getMethodContentFor($method) { $template = file_get_contents(__DIR__ . '/../Resources/templates/method.php'); return rtrim(strtr($template, array('%method%' => $method))); }