zend-code icon indicating copy to clipboard operation
zend-code copied to clipboard

Property without default value

Open wwwgo-pl opened this issue 10 years ago • 1 comments

Is it possible to generate property without default value?

$x = new ClassGenerator;
        $x->setName('Classa');
        $x->addProperty('test');

Should output:

class Classa {
public $test;
}

Maybe there should be new type

TYPE_OMIT

wwwgo-pl avatar Dec 19 '15 09:12 wwwgo-pl

This repository has been closed and moved to laminas/laminas-code; a new issue has been opened at laminas/laminas-code#34.

michalbundyra avatar Jan 15 '20 19:01 michalbundyra