src/ClientVersionMap.php
public function getVersion($version)
    {

        foreach ($this->versions as $versionPattern) {
            if (preg_match($versionPattern['regex'], $version)) {
                return $versionPattern['version'];
            }
        }

        throw new VersionException('Version not found');
    }
public function getVersion($version)
    {

        foreach ($this->versions as $versionPattern) {
            if (preg_match($versionPattern['regex'], $version)) {
                return $versionPattern['version'];
            }
        }

        throw new VersionException('Version not found');
    }
public function getVersion ( $ version ) { foreach ( $ this -> versions as $ versionPattern ) { if ( preg_match ( $ versionPattern [ 'regex' ] , $ version ) ) { return $ versionPattern [ 'version' ] ; } } throw new VersionException ( 'Version not found' ) ; }
Get the defined version for folders.
We throw an exception in case of a non-matching version.

@param  string $version A version string in the schema of 0.90.x.

@return string The internal namespace/folder
@throws VersionException
@author Daniel Wendlandt
Get the defined version for folders . We throw an exception in case of a non - matching version .