zend-code
zend-code copied to clipboard
Property without default value
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
This repository has been closed and moved to laminas/laminas-code; a new issue has been opened at laminas/laminas-code#34.