nstwf/extended-reflection-class

Extended reflection class

1.2.2 2022-06-07 06:08 UTC

This package is auto-updated.

Last update: 2024-11-07 13:10:44 UTC


README

Downloads Pipeline status Code coverage Tag PHP

Features:

$reflectionClass = new ExtendedReflectionClass(MyClass::class);

$useStatementsMap = $reflectionClass->getUseStatementsMap();

//    UseStatementMap Object
//    (
//        [useStatements:\UseStatementMap:private] => Array
//            (
//                [BarClass] => \UseStatement Object
//                    (
//                        [class:\UseStatement:private] => \Implementation\Nested\BarClass
//                        [alias:\UseStatement:private] => BarClassAlias
//                    )
//            )
//    
//        [useStatementAliases:\UseStatementMap:private] => Array
//            (
//                [BarClassAlias] => \UseStatement Object
//                    (
//                        [class:\UseStatement:private] => \Implementation\Nested\BarClass
//                        [alias:\UseStatement:private] => BarClassAlias
//                    )
//            )
//    
//    )