| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 72 | 1 | private function createUseStatements(): UseStatements { |
|
| 73 | 1 | if ($this->isNotUserDefined()) { |
|
| 74 | 1 | throw new RuntimeException('Can get use statements from user defined classes only.'); |
|
| 75 | } |
||
| 76 | |||
| 77 | 1 | $this->setUseStatementsIsParsed(); |
|
| 78 | |||
| 79 | 1 | return (new UsesBlockParser($this->readUsesBlock())) |
|
| 80 | 1 | ->getUseStatements(); |
|
| 81 | } |
||
| 82 | |||
| 106 | } |