src/Api/Parameter.php
public function get($component, $vhost = null, $name = null)
    {
        if ($vhost && $name) {
            return $this->client->send(sprintf('/api/parameters/%s/%s/%s', urlencode($component), urlencode($vhost), urlencode($name)));
        } elseif ($vhost) {
            return $this->client->send(sprintf('/api/parameters/%s/%s', urlencode($component), urlencode($vhost)));
        } else {
            return $this->client->send(sprintf('/api/parameters/%s', urlencode($component)));
        }
    }
public function get($component, $vhost = null, $name = null)
    {
        if ($vhost && $name) {
            return $this->client->send(sprintf('/api/parameters/%s/%s/%s', urlencode($component), urlencode($vhost), urlencode($name)));
        } elseif ($vhost) {
            return $this->client->send(sprintf('/api/parameters/%s/%s', urlencode($component), urlencode($vhost)));
        } else {
            return $this->client->send(sprintf('/api/parameters/%s', urlencode($component)));
        }
    }
public function get ( $ component , $ vhost = null , $ name = null ) { if ( $ vhost && $ name ) { return $ this -> client -> send ( sprintf ( '/api/parameters/%s/%s/%s' , urlencode ( $ component ) , urlencode ( $ vhost ) , urlencode ( $ name ) ) ) ; } elseif ( $ vhost ) { return $ this -> client -> send ( sprintf ( '/api/parameters/%s/%s' , urlencode ( $ component ) , urlencode ( $ vhost ) ) ) ; } else { return $ this -> client -> send ( sprintf ( '/api/parameters/%s' , urlencode ( $ component ) ) ) ; } }
A list of all parameters for a given component and virtual host.

@param string $component
@param string|null $vhost
@param string|null $name
@return array
A list of all parameters for a given component and virtual host .