| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Bucket |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var mixed |
||
| 23 | */ |
||
| 24 | private $data; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Bucket constructor. |
||
| 28 | * |
||
| 29 | * @param string $name |
||
| 30 | * @param mixed $data |
||
| 31 | */ |
||
| 32 | public function __construct(string $name, $data = 'default-data') |
||
| 33 | { |
||
| 34 | $this->name = $name; |
||
| 35 | $this->data = $data; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getName() |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function getData() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |