| Total Complexity | 8 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class ConvertHelper_StorageSizeEnum_Size |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $name; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int |
||
| 35 | */ |
||
| 36 | protected $base; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var int |
||
| 40 | */ |
||
| 41 | protected $exponent; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $singular; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | protected $plural; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var string |
||
| 55 | */ |
||
| 56 | protected $suffix; |
||
| 57 | |||
| 58 | public function __construct(string $name, int $base, int $exponent, string $suffix, string $singular, string $plural) |
||
| 66 | } |
||
| 67 | |||
| 68 | public function getBytes() : int |
||
| 69 | { |
||
| 70 | return $this->base ** $this->exponent; |
||
| 71 | } |
||
| 72 | |||
| 73 | public function getName() : string |
||
| 76 | } |
||
| 77 | |||
| 78 | public function getBase() : int |
||
| 79 | { |
||
| 80 | return $this->base; |
||
| 81 | } |
||
| 82 | |||
| 83 | public function getExponent() : int |
||
| 84 | { |
||
| 85 | return $this->exponent; |
||
| 86 | } |
||
| 87 | |||
| 88 | public function getSuffix() : string |
||
| 89 | { |
||
| 90 | return $this->suffix; |
||
| 91 | } |
||
| 92 | |||
| 93 | public function getLabelSingular() : string |
||
| 96 | } |
||
| 97 | |||
| 98 | public function getLabelPlural() : string |
||
| 101 | } |
||
| 102 | } |
||
| 103 |