use MockingMagician\CoinbaseProSdk\Contracts\Api\ApiInterface; /** @var ApiInterface $api */ $api->fees()->getCurrentFees();