”工欲善其事,必先利其器。“—孔子《论语.录灵公》
首页 > 编程 > 小型机械手

小型机械手

发布于2024-11-06
浏览:349

Small Class Manipulator

小型机械臂新重大发布

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

这是一个操作示例:

    $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://dev.to/sebk69/small-class-manipulation-20-5elb?1如有侵犯,请联系[email protected]删除
最新教程 更多>

免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。

Copyright© 2022 湘ICP备2022001581号-3