Bucket   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 12
c 1
b 0
f 0
dl 0
loc 36
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getId() 0 3 1
A getType() 0 3 1
A __construct() 0 5 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