Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 6 | * @param $type |
|
22 | * @param $options |
||
23 | 6 | * @param $corsRules |
|
24 | 6 | */ |
|
25 | 6 | public function __construct($id, $name, $type, $options, $corsRules) |
|
26 | 6 | { |
|
27 | $this->id = $id; |
||
28 | 2 | $this->name = $name; |
|
29 | $this->type = $type; |
||
30 | 2 | $this->options = $options; |
|
31 | $this->corsRules = $corsRules; |
||
32 | } |
||
33 | 2 | ||
34 | public function getId() |
||
35 | 2 | { |
|
36 | return $this->id; |
||
37 | } |
||
38 | 4 | ||
39 | public function getName() |
||
42 | } |
||
43 | |||
44 | 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 |