1 | <?php |
||
24 | class Time |
||
25 | { |
||
26 | /* |
||
27 | |-------------------------------------------------------------------------- |
||
28 | | Time Class |
||
29 | |-------------------------------------------------------------------------- |
||
30 | | |
||
31 | | For the conversion of time. |
||
32 | | |
||
33 | */ |
||
34 | |||
35 | /** |
||
36 | * Create a new class instance. |
||
37 | * |
||
38 | * @return void |
||
|
|||
39 | */ |
||
40 | public function __construct() |
||
44 | |||
45 | /** |
||
46 | * Convert Time according to the time passes |
||
47 | * |
||
48 | * @param string $time To store time |
||
49 | * |
||
50 | * @return string $time |
||
51 | */ |
||
52 | public function timeConversion($time) |
||
69 | } |
||
70 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.