Bucket::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace BackblazeB2;
4
5
class Bucket
6
{
7
    const TYPE_PUBLIC = 'allPublic';
8
    const TYPE_PRIVATE = 'allPrivate';
9
10
    protected $id;
11
    protected $name;
12
    protected $type;
13
14
    /**
15
     * Bucket constructor.
16
     *
17
     * @param $id
18
     * @param $name
19
     * @param $type
20
     */
21 6
    public function __construct($id, $name, $type)
22
    {
23 6
        $this->id = $id;
24 6
        $this->name = $name;
25 6
        $this->type = $type;
26 6
    }
27
28 2
    public function getId()
29
    {
30 2
        return $this->id;
31
    }
32
33 2
    public function getName()
34
    {
35 2
        return $this->name;
36
    }
37
38 4
    public function getType()
39
    {
40 4
        return $this->type;
41
    }
42
}
43