public function getVersion()
    {
        if (isset($this->version)) {
            return (string)$this->version;
        } else {
            OsDetector::detect($this, $this->getUserAgent());

            return (string)$this->version;
        }
    }
public function getVersion()
    {
        if (isset($this->version)) {
            return (string)$this->version;
        } else {
            OsDetector::detect($this, $this->getUserAgent());

            return (string)$this->version;
        }
    }
public function getVersion ( ) { if ( isset ( $ this -> version ) ) { return ( string ) $ this -> version ; } else { OsDetector :: detect ( $ this , $ this -> getUserAgent ( ) ) ; return ( string ) $ this -> version ; } }
Return the version of the OS.

@return string
Return the version of the OS .