public static function staticToStatic(string $sourceName, string $targetName): void
  {
    $source      = file_get_contents($sourceName);
    $sourceClass = basename($sourceName, '.php');
    $targetClass = basename($targetName, '.php');

    $source = NonStatic::nonStatic($source, $sourceClass, $targetClass);

    file_put_contents($targetName, $source);
  }
public static function staticToStatic(string $sourceName, string $targetName): void
  {
    $source      = file_get_contents($sourceName);
    $sourceClass = basename($sourceName, '.php');
    $targetClass = basename($targetName, '.php');

    $source = NonStatic::nonStatic($source, $sourceClass, $targetClass);

    file_put_contents($targetName, $source);
  }
public static function staticToStatic ( string $ sourceName , string $ targetName ) : void { $ source = file_get_contents ( $ sourceName ) ; $ sourceClass = basename ( $ sourceName , '.php' ) ; $ targetClass = basename ( $ targetName , '.php' ) ; $ source = NonStatic :: nonStatic ( $ source , $ sourceClass , $ targetClass ) ; file_put_contents ( $ targetName , $ source ) ; }
Makes non static implementation of a static class.

@param string $sourceName The filename with the static class.
@param string $targetName The filename where the non static class must be written.
Makes non static implementation of a static class .