1 | <?php |
||
11 | class StringDigitList extends AbstractDigitList |
||
12 | { |
||
13 | /** |
||
14 | * Creates a new instance of StringDigitList. |
||
15 | * |
||
16 | * The list of digits must be provided as a string. Each character |
||
17 | * represents a single digit and the position in the string represents the |
||
18 | * value for that digit. For example, base 16 could be defined as |
||
19 | * `0123456789ABCDEF`. |
||
20 | * |
||
21 | * @param string $digits Digits for the numeral system |
||
22 | * @throws \InvalidArgumentException If the list of digits is invalid |
||
23 | */ |
||
24 | 54 | public function __construct($digits) |
|
36 | } |
||
37 |