1 | <?php |
||
16 | class AsciiConverter extends Converter |
||
17 | { |
||
18 | /** |
||
19 | * Accepts geez number and return an integer. |
||
20 | * |
||
21 | * @param $geez_number string to be converted |
||
22 | * |
||
23 | * @throws NotGeezArgumentException if the valid geez number |
||
24 | * |
||
25 | * @return int the ascii representation |
||
26 | */ |
||
27 | 99 | public function convert($geez_number) |
|
33 | |||
34 | /** |
||
35 | * Parse the geez number number to a queue. |
||
36 | * |
||
37 | * @param $geez_number |
||
38 | * |
||
39 | * @return Queue |
||
40 | */ |
||
41 | 99 | protected function parse($geez_number) |
|
48 | |||
49 | /** |
||
50 | * Calculate the ascii from the parsed queue. |
||
51 | * |
||
52 | * @param Queue $parsed |
||
53 | * |
||
54 | * @return int |
||
55 | */ |
||
56 | 91 | protected function calculate(Queue $parsed) |
|
63 | } |
||
64 |