| Total Complexity | 4 |
| Total Lines | 36 |
| 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 | |||
| 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() |
|
| 36 | } |
||
| 37 | |||
| 38 | 4 | public function getType() |
|
| 41 | } |
||
| 42 | } |
||
| 43 |