1 | <?php |
||
7 | class Convert |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Converts celsius to fahrenheit. |
||
12 | * @param float $celsius Value to convert. |
||
13 | * @return float Converted value. |
||
14 | */ |
||
15 | 1 | public static function toFahrenheit(float $celsius): float |
|
19 | |||
20 | /** |
||
21 | * Converts fahrenheit to celsius. |
||
22 | * @param float $fahrenheit Value to convert. |
||
23 | * @return float Converted value. |
||
24 | */ |
||
25 | 1 | public static function toCelsius(float $fahrenheit): float |
|
29 | } |
||
30 |