nid becomes $node->id(). Rewriters work from property maps defined * in the plugin definition. */ interface RewriterInterface { /** * Parametrically rewrites the function containing the given parameter. * * @param ParameterNode $parameter * The parameter upon which to base the rewrite. The parameter must be * attached to a function or method declaration node, or fatal errors will * likely result. */ public function rewrite(ParameterNode $parameter); }