src/Resource/MoipResource.php
public function generatePath($action, $id = null)
    {
        if (!is_null($id)) {
            return sprintf('%s/%s/%s/%s', self::VERSION, static::PATH, $action, $id);
        }

        return sprintf('%s/%s/%s', self::VERSION, static::PATH, $action);
    }
public function generatePath($action, $id = null)
    {
        if (!is_null($id)) {
            return sprintf('%s/%s/%s/%s', self::VERSION, static::PATH, $action, $id);
        }

        return sprintf('%s/%s/%s', self::VERSION, static::PATH, $action);
    }
public function generatePath ( $ action , $ id = null ) { if ( ! is_null ( $ id ) ) { return sprintf ( '%s/%s/%s/%s' , self :: VERSION , static :: PATH , $ action , $ id ) ; } return sprintf ( '%s/%s/%s' , self :: VERSION , static :: PATH , $ action ) ; }
Generate URL to request.

@param $action
@param $id

@return string
Generate URL to request .