小型机械手(机械手...)

wufei123 发布于 2024-09-08 阅读(20)

小型机械手

小班机械手新的主要版本

代码已完全重构并编码为属性操作的新支持

这是一个操纵示例:

PHP
    $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

以上就是小型机械手的详细内容,更多请关注知识资源分享宝库其它相关文章!

标签:  机械手 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。