Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 68.42% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | protected $options; |
||
14 | protected $corsRules; |
||
15 | |||
16 | /** |
||
17 | * Bucket constructor. |
||
18 | * |
||
19 | * @param $id |
||
20 | * @param $name |
||
21 | * @param $type |
||
22 | * @param $options |
||
23 | * @param $corsRules |
||
24 | */ |
||
25 | 6 | public function __construct($id, $name, $type, $options, $corsRules) |
|
26 | { |
||
27 | 6 | $this->id = $id; |
|
28 | 6 | $this->name = $name; |
|
29 | 6 | $this->type = $type; |
|
30 | 6 | $this->options = $options; |
|
31 | 6 | $this->corsRules = $corsRules; |
|
32 | 6 | } |
|
33 | |||
34 | 2 | public function getId() |
|
35 | { |
||
36 | 2 | return $this->id; |
|
37 | } |
||
38 | |||
39 | 2 | public function getName() |
|
42 | } |
||
43 | |||
44 | 4 | public function getType() |
|
47 | } |
||
48 | |||
49 | public function getOptions() |
||
52 | } |
||
53 | |||
54 | public function getCorsRules() |
||
55 | { |
||
56 | return $this->corsRules; |
||
57 | } |
||
58 | |||
59 | public function isS3Compatible() |
||
62 | } |
||
63 | } |
||
64 |