[5.0] GeneratorCommand : Missing type declaration

As `$type` is used in abstract `GeneratorCommand`, it should be declared.