
小班机械手新的主要版本
代码已完全重构并编码为属性操作的新支持
这是一个操纵示例:
$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










