src/Api/Binding.php
public function all($vhost = null)
    {
        if ($vhost) {
            return $this->client->send(sprintf('/api/bindings/%s', urlencode($vhost)));
        } else {
            return $this->client->send('/api/bindings');
        }
    }
public function all($vhost = null)
    {
        if ($vhost) {
            return $this->client->send(sprintf('/api/bindings/%s', urlencode($vhost)));
        } else {
            return $this->client->send('/api/bindings');
        }
    }
public function all ( $ vhost = null ) { if ( $ vhost ) { return $ this -> client -> send ( sprintf ( '/api/bindings/%s' , urlencode ( $ vhost ) ) ) ; } else { return $ this -> client -> send ( '/api/bindings' ) ; } }
A list of all bindings.

OR

A list of all bindings in a given virtual host.

@param string|null $vhost
@return array
A list of all bindings .