"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Small Class Manipulator

Small Class Manipulator

Published on 2024-11-06
Browse:310

Small Class Manipulator

New major release of Small Class manipulator

The code have been fully refactored and coded a new support of attributes manipulation

Here is an example of manipulation :

    $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();

Find out on :

  • git : https://git.small-project.dev/lib/small-class-manipulator
  • packagist : https://packagist.org/packages/small/class-manipulator
Release Statement This article is reproduced at: https://dev.to/sebk69/small-class-manipulation-20-5elb?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3