2024-09-07

小型机械手

小型机械手

小班机械手新的主要版本

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

这是一个操纵示例:

    $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

以上就是小型机械手的详细内容,更多请关注php中文网其它相关文章!

https://www.php.cn/faq/988618.html

发表回复

Your email address will not be published. Required fields are marked *