public function setVersion ($version)
    {
        $version = strtolower(strval($version));
        if (! self::isValid($version)) {
            $version = self::DEFAULT_UNRESOLVED_VERSION;
        }
        
        $this->numbers = self::parse($version);
        $this->version = $version;
        return $this;
    }
public function setVersion ($version)
    {
        $version = strtolower(strval($version));
        if (! self::isValid($version)) {
            $version = self::DEFAULT_UNRESOLVED_VERSION;
        }
        
        $this->numbers = self::parse($version);
        $this->version = $version;
        return $this;
    }
public function setVersion ( $ version ) { $ version = strtolower ( strval ( $ version ) ) ; if ( ! self :: isValid ( $ version ) ) { $ version = self :: DEFAULT_UNRESOLVED_VERSION ; } $ this -> numbers = self :: parse ( $ version ) ; $ this -> version = $ version ; return $ this ; }
Set current version

@param $version string|int
Version (float/integer is casted to string)
@return SoftwareVersion
Set current version