Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
14 / 14
100.00% covered (success)
100.00%
14 / 14
CRAP
100.00% covered (success)
100.00%
1 / 1
Account
100.00% covered (success)
100.00%
14 / 14
100.00% covered (success)
100.00%
14 / 14
14
100.00% covered (success)
100.00%
1 / 1
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getEmail
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEmail
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getAcls
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAcls
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getBalance
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBalance
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPendingCharges
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPendingCharges
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLastPaymentDate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLastPaymentDate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLastPaymentAmount
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLastPaymentAmount
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\Util\Model;
8
9/**
10 * Contains information about, the account, permission, and billing information.
11 */
12class Account extends Model
13{
14    protected string $name;
15    protected string $email;
16    protected array $acls;
17    protected float $balance;
18    protected float $pendingCharges;
19    protected string $lastPaymentDate;
20    protected float $lastPaymentAmount;
21
22    public function getName() : string
23    {
24        return $this->name;
25    }
26
27    public function setName(string $name) : void
28    {
29        $this->name = $name;
30    }
31
32    public function getEmail() : string
33    {
34        return $this->email;
35    }
36
37    public function setEmail(string $email) : void
38    {
39        $this->email = $email;
40    }
41
42    public function getAcls() : array
43    {
44        return $this->acls;
45    }
46
47    public function setAcls(array $acls) : void
48    {
49        $this->acls = $acls;
50    }
51
52    public function getBalance() : float
53    {
54        return $this->balance;
55    }
56
57    public function setBalance(float $balance) : void
58    {
59        $this->balance = $balance;
60    }
61
62    public function getPendingCharges() : float
63    {
64        return $this->pendingCharges;
65    }
66
67    public function setPendingCharges(float $pending_charges) : void
68    {
69        $this->pendingCharges = $pending_charges;
70    }
71
72    public function getLastPaymentDate() : string
73    {
74        return $this->lastPaymentDate;
75    }
76
77    public function setLastPaymentDate(string $last_payment_date) : void
78    {
79        $this->lastPaymentDate = $last_payment_date;
80    }
81
82    public function getLastPaymentAmount() : float
83    {
84        return $this->lastPaymentAmount;
85    }
86
87    public function setLastPaymentAmount(float $last_payment_amount) : void
88    {
89        $this->lastPaymentAmount = $last_payment_amount;
90    }
91}