
小班机械手新的主要版本
代码已完全重构并编码为属性操作的新支持
这是一个操纵示例:
$classFile = \Small\ClassManipulator\ClassManipulator::fromProject(__DIR__ . '/../..')
->getClass(\Small\ClassManipulator\Test\Fixture\SimpleClass::class)
->parse();
$classFile->getClass()->getAttributes()->push(
(new \Small\ClassManipulator\ClassFile\Bean\AttributeBean())
->setClass('\ORM')
);
$classFile->write();
登录后复制
了解:
git:https://git.small-project.dev/lib/small-class-manipulator
packagist:https://packagist.org/packages/small/class-manipulator
以上就是小型机械手的详细内容,更多请关注至强加速其它相关文章!
本文来源于互联网,如若侵权,请联系管理员删除,本文链接:https://www.9969.net/45006.html