src/Yggdrasil/Utils/Entity/EntityGenerator.php
private function saveFile(): void
    {
        $sourceCode = Helpers::tabsToSpaces((string) $this->entityFile);
        $entityPath = dirname(__DIR__, 7) . '/src/' . $this->entityData['namespace'] . '/';

        $handle = fopen($entityPath . $this->entityData['class'] . '.php', 'w');
        fwrite($handle, $sourceCode);
        fclose($handle);
    }
private function saveFile(): void
    {
        $sourceCode = Helpers::tabsToSpaces((string) $this->entityFile);
        $entityPath = dirname(__DIR__, 7) . '/src/' . $this->entityData['namespace'] . '/';

        $handle = fopen($entityPath . $this->entityData['class'] . '.php', 'w');
        fwrite($handle, $sourceCode);
        fclose($handle);
    }
private function saveFile ( ) : void { $ sourceCode = Helpers :: tabsToSpaces ( ( string ) $ this -> entityFile ) ; $ entityPath = dirname ( __DIR__ , 7 ) . '/src/' . $ this -> entityData [ 'namespace' ] . '/' ; $ handle = fopen ( $ entityPath . $ this -> entityData [ 'class' ] . '.php' , 'w' ) ; fwrite ( $ handle , $ sourceCode ) ; fclose ( $ handle ) ; }
Saves entity file in given path
Saves entity file in given path