1 | <?php |
||
13 | class Geezify |
||
14 | { |
||
15 | /** |
||
16 | * @var GeezConverter |
||
17 | */ |
||
18 | protected $geez_converter; |
||
19 | |||
20 | /** |
||
21 | * @var AsciiConverter |
||
22 | */ |
||
23 | protected $ascii_converter; |
||
24 | |||
25 | /** |
||
26 | * Geezify constructor. |
||
27 | * |
||
28 | * @param GeezConverter $geez_converter |
||
29 | * @param AsciiConverter $ascii_converter |
||
30 | */ |
||
31 | public function __construct( |
||
38 | |||
39 | /** |
||
40 | * Return a new Geezify instance. |
||
41 | * |
||
42 | * @return Geezify |
||
43 | */ |
||
44 | public static function create() |
||
48 | |||
49 | /** |
||
50 | * Converts ASCII number to geez. |
||
51 | * |
||
52 | * @param $ascii_number |
||
53 | * |
||
54 | * @throws \Geezify\Exception\NotAnIntegerArgumentException |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function toGeez($ascii_number) |
||
62 | |||
63 | /** |
||
64 | * Convert geez to ASCII. |
||
65 | * |
||
66 | * @param string $geez_number |
||
67 | * |
||
68 | * @throws \Geezify\Exception\NotGeezArgumentException |
||
69 | * |
||
70 | * @return int |
||
71 | */ |
||
72 | public function toAscii($geez_number) |
||
76 | |||
77 | /** |
||
78 | * @return GeezConverter |
||
79 | */ |
||
80 | public function getGeezConverter() |
||
84 | |||
85 | /** |
||
86 | * @param GeezConverter $geez_converter |
||
87 | */ |
||
88 | public function setGeezConverter(GeezConverter $geez_converter) |
||
92 | |||
93 | /** |
||
94 | * @return AsciiConverter |
||
95 | */ |
||
96 | public function getAsciiConverter() |
||
100 | |||
101 | /** |
||
102 | * @param AsciiConverter $ascii_converter |
||
103 | */ |
||
104 | public function setAsciiConverter(AsciiConverter $ascii_converter) |
||
108 | } |
||
109 |