/** * @param string $accountId * * @return Account|Cursor */ public function getAccounts($accountId = '') { $account = new Account($this); return $accountId ? $account->load($accountId) : $account->all(); }