json-to-php-generator icon indicating copy to clipboard operation
json-to-php-generator copied to clipboard

Add Doc String for old php versions

Open lucasres opened this issue 1 year ago • 1 comments

Hello, your project is very good, but I believe we could add a checkbox that would include the type doc string. This is useful for older versions of PHP.

Can i help to implementation

example:

class Barr
{
    private $id;
...

with makerd combox for doc string, will be like this:

class Bar
{
    /**
     * @var int
    */
    private $id;
...

lucasres avatar Jul 09 '24 20:07 lucasres

Hi @lucasres, if you select php 7.3 and in the tab Docblock -> Property docblock select All, you will get this result.

As an improvement we should make the Only necessary option react to PHP 7.3 being selected and include the docblocks automatically.

jacobdekeizer avatar Jul 12 '24 13:07 jacobdekeizer