src/Yggdrasil/Utils/Service/ServiceDTOGenerator.php
private function generateProperties(): ServiceDTOGenerator
    {
        foreach ($this->inputData['properties'] as $name => $type) {
            if ('datetime' === $type) {
                $type = '\DateTime';
            }

            $this->DTOClass
                ->addProperty($name)
                ->setVisibility('private')
                ->addComment($this->inputData['class'] . ' ' . $name . PHP_EOL)
                ->addComment('@var ' . $type . ' $' . $name);
        }

        return $this;
    }
private function generateProperties(): ServiceDTOGenerator
    {
        foreach ($this->inputData['properties'] as $name => $type) {
            if ('datetime' === $type) {
                $type = '\DateTime';
            }

            $this->DTOClass
                ->addProperty($name)
                ->setVisibility('private')
                ->addComment($this->inputData['class'] . ' ' . $name . PHP_EOL)
                ->addComment('@var ' . $type . ' $' . $name);
        }

        return $this;
    }
private function generateProperties ( ) : ServiceDTOGenerator { foreach ( $ this -> inputData [ 'properties' ] as $ name => $ type ) { if ( 'datetime' === $ type ) { $ type = '\DateTime' ; } $ this -> DTOClass -> addProperty ( $ name ) -> setVisibility ( 'private' ) -> addComment ( $ this -> inputData [ 'class' ] . ' ' . $ name . PHP_EOL ) -> addComment ( '@var ' . $ type . ' $' . $ name ) ; } return $ this ; }
Generates service DTO properties

@return ServiceDTOGenerator
Generates service DTO properties