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

how to set extends

Open smartyaunt opened this issue 6 years ago • 1 comments

HI, brother, how to set extends class . have this api?

smartyaunt avatar Dec 03 '18 06:12 smartyaunt

Use setParentClassName('Action'):

$class = new PhpClass('MyAction');
$class->setParentClassName('Action');

gossi avatar Dec 03 '18 13:12 gossi