Small Class Manipulator 2.0

sebk69 - Sep 5 - - Dev Community

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();
Enter fullscreen mode Exit fullscreen mode

Find out on :

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player