Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AccountService
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getAccount
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Vultr\VultrPhp\Services\Account;
6
7use Vultr\VultrPhp\Services\VultrService;
8
9/**
10 * Account service handler, for account endpoints.
11 *
12 * @see https://www.vultr.com/api/#tag/account
13 */
14class AccountService extends VultrService
15{
16    /**
17     * Get the Account Model with information for the logged in API Key.
18     *
19     * @throws AccountException
20     * @throws VultrException
21     * @return Account
22     */
23    public function getAccount() : Account
24    {
25        return $this->getObject('account', new Account());
26    }
27}