public static function toComponents(Version $version)
    {
        return array(
            Parser::MAJOR => $version->getMajor(),
            Parser::MINOR => $version->getMinor(),
            Parser::PATCH => $version->getPatch(),
            Parser::PRE_RELEASE => $version->getPreRelease(),
            Parser::BUILD => $version->getBuild()
        );
    }
public static function toComponents(Version $version)
    {
        return array(
            Parser::MAJOR => $version->getMajor(),
            Parser::MINOR => $version->getMinor(),
            Parser::PATCH => $version->getPatch(),
            Parser::PRE_RELEASE => $version->getPreRelease(),
            Parser::BUILD => $version->getBuild()
        );
    }
public static function toComponents ( Version $ version ) { return array ( Parser :: MAJOR => $ version -> getMajor ( ) , Parser :: MINOR => $ version -> getMinor ( ) , Parser :: PATCH => $ version -> getPatch ( ) , Parser :: PRE_RELEASE => $ version -> getPreRelease ( ) , Parser :: BUILD => $ version -> getBuild ( ) ) ; }
Returns the components of a Version instance.

@param Version $version A version.

@return array The components.
Returns the components of a Version instance .