Small Class Manipulator 2.0

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__…


This content originally appeared on DEV Community and was authored by sebk69

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 :


This content originally appeared on DEV Community and was authored by sebk69


Print Share Comment Cite Upload Translate Updates
APA

sebk69 | Sciencx (2024-09-05T14:31:32+00:00) Small Class Manipulator 2.0. Retrieved from https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/

MLA
" » Small Class Manipulator 2.0." sebk69 | Sciencx - Thursday September 5, 2024, https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/
HARVARD
sebk69 | Sciencx Thursday September 5, 2024 » Small Class Manipulator 2.0., viewed ,<https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/>
VANCOUVER
sebk69 | Sciencx - » Small Class Manipulator 2.0. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/
CHICAGO
" » Small Class Manipulator 2.0." sebk69 | Sciencx - Accessed . https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/
IEEE
" » Small Class Manipulator 2.0." sebk69 | Sciencx [Online]. Available: https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/. [Accessed: ]
rf:citation
» Small Class Manipulator 2.0 | sebk69 | Sciencx | https://www.scien.cx/2024/09/05/small-class-manipulator-2-0/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.