src/Yggdrasil/Utils/Service/ServiceDTOGenerator.php
private function generateClass(): ServiceDTOGenerator
    {
        $this->DTOFile = (new PhpFile())
            ->addComment('This file is auto-generated.');

        $namespace = $this->inputData['namespace'] . '\\' . $this->inputData['module'] . 'Module\\' . $this->inputData['type'];

        $this->DTOClass = $this->DTOFile
            ->addNamespace($namespace)
            ->addClass($this->inputData['class'] . $this->inputData['type'])
            ->addComment($this->inputData['class'] . ' service ' . strtolower($this->inputData['type']) . PHP_EOL)
            ->addComment('@package ' . $namespace);

        return $this;
    }
private function generateClass(): ServiceDTOGenerator
    {
        $this->DTOFile = (new PhpFile())
            ->addComment('This file is auto-generated.');

        $namespace = $this->inputData['namespace'] . '\\' . $this->inputData['module'] . 'Module\\' . $this->inputData['type'];

        $this->DTOClass = $this->DTOFile
            ->addNamespace($namespace)
            ->addClass($this->inputData['class'] . $this->inputData['type'])
            ->addComment($this->inputData['class'] . ' service ' . strtolower($this->inputData['type']) . PHP_EOL)
            ->addComment('@package ' . $namespace);

        return $this;
    }
private function generateClass ( ) : ServiceDTOGenerator { $ this -> DTOFile = ( new PhpFile ( ) ) -> addComment ( 'This file is auto-generated.' ) ; $ namespace = $ this -> inputData [ 'namespace' ] . '\\' . $ this -> inputData [ 'module' ] . 'Module\\' . $ this -> inputData [ 'type' ] ; $ this -> DTOClass = $ this -> DTOFile -> addNamespace ( $ namespace ) -> addClass ( $ this -> inputData [ 'class' ] . $ this -> inputData [ 'type' ] ) -> addComment ( $ this -> inputData [ 'class' ] . ' service ' . strtolower ( $ this -> inputData [ 'type' ] ) . PHP_EOL ) -> addComment ( '@package ' . $ namespace ) ; return $ this ; }
Generates service DTO class

@return ServiceDTOGenerator
Generates service DTO class