Completed
Push — master ( b812a3...c78ccd )
by Thijs
10:26 queued 08:16
created

Account::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace TestMonitor\DevOps\Resources;
4
5
class Account extends Resource
6
{
7
    /**
8
     * The id of the account.
9
     *
10
     * @var string
11
     */
12
    public $id;
13
14
    /**
15
     * The name of the account.
16
     *
17
     * @var string
18
     */
19
    public $name;
20
21
    /**
22
     * Create a new resource instance.
23
     *
24
     * @param string $id
25
     * @param string $name
26
     */
27 1
    public function __construct(string $id, string $name)
28
    {
29 1
        $this->id = $id;
30 1
        $this->name = $name;
31 1
    }
32
}
33