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;
    }