Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
27 | 2 | public static function fromFile($filename) { |
|
28 | 2 | $interface = new PhpInterface(); |
|
29 | 2 | $parser = new FileParser($filename); |
|
30 | 2 | $parser->addVisitor(new InterfaceParserVisitor($interface)); |
|
31 | 2 | $parser->addVisitor(new MethodParserVisitor($interface)); |
|
32 | 2 | $parser->addVisitor(new ConstantParserVisitor($interface)); |
|
33 | 2 | $parser->parse(); |
|
34 | |||
35 | 2 | return $interface; |
|
36 | } |
||
37 | |||
60 |