| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class UInt64 implements NumericType |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | public $value; |
||
| 11 | |||
| 12 | 2 | private function __construct(string $uint64Value) |
|
| 13 | { |
||
| 14 | 2 | $this->value = $uint64Value; |
|
| 15 | 2 | } |
|
| 16 | |||
| 17 | /** |
||
| 18 | * @return self |
||
| 19 | */ |
||
| 20 | 2 | public static function fromString(string $uint64Value) |
|
|
|
|||
| 21 | { |
||
| 22 | 2 | return new self($uint64Value); |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 1 | public function getValue() |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 1 | public function __toString() |
|
| 41 |