| 1 | <?php |
||
| 14 | trait Base64UIntValue |
||
| 15 | { |
||
| 16 | use Base64URLValue; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get the parameter value. |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | abstract public function value(); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Initialize parameter from base10 number. |
||
| 27 | * |
||
| 28 | * @param int|string $number |
||
| 29 | * @return self |
||
| 30 | */ |
||
| 31 | 17 | public static function fromNumber($number) { |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get value as a number. |
||
| 38 | * |
||
| 39 | * @return BigInt |
||
| 40 | */ |
||
| 41 | 32 | public function number() { |
|
| 44 | } |
||
| 45 |