src/Model/Version.php
public function getParts()
    {
        $parts = explode('.', $this->value);

        return (object) [
            'major' => !empty($parts[0]) ? intval($parts[0]) : 0,
            'minor' => !empty($parts[1]) ? intval($parts[1]) : 0,
            'patch' => !empty($parts[2]) ? intval($parts[2]) : 0,
        ];
    }
public function getParts()
    {
        $parts = explode('.', $this->value);

        return (object) [
            'major' => !empty($parts[0]) ? intval($parts[0]) : 0,
            'minor' => !empty($parts[1]) ? intval($parts[1]) : 0,
            'patch' => !empty($parts[2]) ? intval($parts[2]) : 0,
        ];
    }
public function getParts ( ) { $ parts = explode ( '.' , $ this -> value ) ; return ( object ) [ 'major' => ! empty ( $ parts [ 0 ] ) ? intval ( $ parts [ 0 ] ) : 0 , 'minor' => ! empty ( $ parts [ 1 ] ) ? intval ( $ parts [ 1 ] ) : 0 , 'patch' => ! empty ( $ parts [ 2 ] ) ? intval ( $ parts [ 2 ] ) : 0 , ] ; }
Return an object with each part of the version number

@return object
Return an object with each part of the version number