| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | public static function toComponents(Version $version)  | 
            ||
| 20 |     { | 
            ||
| 21 | return array(  | 
            ||
| 22 | Parser::MAJOR => $version->getMajor(),  | 
            ||
| 23 | Parser::MINOR => $version->getMinor(),  | 
            ||
| 24 | Parser::PATCH => $version->getPatch(),  | 
            ||
| 25 | Parser::PRE_RELEASE => $version->getPreRelease(),  | 
            ||
| 26 | Parser::BUILD => $version->getBuild()  | 
            ||
| 27 | );  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 53 |