src/Api/ApiProvider.php
public function getVersions($service)
    {
        if (!isset($this->manifest)) {
            $this->buildVersionsList($service);
        }

        if (!isset($this->manifest[$service]['versions'])) {
            return [];
        }

        return array_values(array_unique($this->manifest[$service]['versions']));
    }
public function getVersions($service)
    {
        if (!isset($this->manifest)) {
            $this->buildVersionsList($service);
        }

        if (!isset($this->manifest[$service]['versions'])) {
            return [];
        }

        return array_values(array_unique($this->manifest[$service]['versions']));
    }
public function getVersions ( $ service ) { if ( ! isset ( $ this -> manifest ) ) { $ this -> buildVersionsList ( $ service ) ; } if ( ! isset ( $ this -> manifest [ $ service ] [ 'versions' ] ) ) { return [ ] ; } return array_values ( array_unique ( $ this -> manifest [ $ service ] [ 'versions' ] ) ) ; }
Retrieves a list of valid versions for the specified service.

@param string $service Service name

@return array
Retrieves a list of valid versions for the specified service .