| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class FirstProjectClass |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Returns a message with the result of the encoded string |
||
| 21 | * |
||
| 22 | * @param string $string_to_encode |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 3 | public function encoding($string_to_encode) |
|
| 26 | { |
||
| 27 | 3 | $my_first_library=new FirstClass(); |
|
| 28 | 3 | $encoded=$my_first_library->encodeString($string_to_encode); |
|
| 29 | 3 | return "The string '$string_to_encode' is encoded as '$encoded'"; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns a message with the result of the decoded string |
||
| 34 | * |
||
| 35 | * @param string $string_to_decode |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 3 | public function decoding($string_to_decode) |
|
| 43 | } |
||
| 44 | } |
||
| 45 |