public function generateFactoryCall(FactoryCall $call)
 {
     $code = "if (!function_exists('{$call->getName()}')) {";
     $code .= parent::generateFactoryCall($call);
     $code .= "}\n";
     return $code;
 }
 public function generateFactoryCall(FactoryCall $call)
 {
     $method = $call->getMethod();
     $code = $method->getComment($this->indent) . PHP_EOL;
     $code .= $this->generateDeclaration($call->getName(), $method);
     // $code .= $this->generateImport($method);
     $code .= $this->generateCall($method);
     $code .= $this->generateClosing();
     return $code;
 }