| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class ScopeMother |
||
| 10 | { |
||
| 11 | public static function example(): Scope |
||
| 12 | { |
||
| 13 | return (new ScopeBuilder()) |
||
| 14 | ->build(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function withSubject(\Reflector $reflector): Scope |
||
| 18 | { |
||
| 19 | return (new ScopeBuilder()) |
||
| 20 | ->withSubject($reflector) |
||
| 21 | ->build(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string[] $names |
||
| 26 | */ |
||
| 27 | public static function withIgnoredAnnotations(array $names): Scope |
||
| 28 | { |
||
| 29 | return (new ScopeBuilder()) |
||
| 30 | ->withIgnoredAnnotations($names) |
||
| 31 | ->build(); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array<string,string> $importsMap |
||
| 36 | */ |
||
| 37 | public static function withImports(array $importsMap): Scope |
||
| 38 | { |
||
| 39 | return (new ScopeBuilder()) |
||
| 40 | ->withImports($importsMap) |
||
| 41 | ->build(); |
||
| 42 | } |
||
| 43 | |||
| 44 | public static function withNestingLevel(int $level): Scope |
||
| 49 | } |
||
| 50 | } |
||
| 51 |