When generating php classes, the type is put as a trailing comment next to the field.

I think it'd make sense to switch this to phpdoc comments as it is used in many IDEs + documentation generation tools
https://docs.phpdoc.org/references/phpdoc/basic-syntax.html
