小型機械手

WBOY
發布: 2024-09-06 06:44:32
原創
441 人瀏覽過

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

以上是小型機械手的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:dev.to
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!