/**
* Builds PHP code which calls the original (ie. parent) method after the added code has been executed.
*
* @param string $fullClassName Fully qualified name of the original class
* @param string $methodName Name of the original method
* @return string PHP code
*/
protected function buildCallParentMethodCode($fullClassName, $methodName)
{
if (!$this->reflectionService->hasMethod($fullClassName, $methodName)) {
return '';
}
return 'parent::' . $methodName . '(' . $this->buildMethodParametersCode($fullClassName, $methodName, false) . ");\n";
}