1 | <?php |
||
37 | class Logger |
||
38 | { |
||
39 | /** |
||
40 | * Class constructor |
||
41 | * |
||
42 | * Initialize Logger. |
||
43 | * |
||
44 | * @return void |
||
|
|||
45 | */ |
||
46 | 1 | public function __construct() |
|
50 | |||
51 | /** |
||
52 | * Write Log File |
||
53 | * |
||
54 | * @param string $msg |
||
55 | * @param string $level |
||
56 | * @return void |
||
57 | */ |
||
58 | 4 | public function write($msg, $level = 'APP') |
|
74 | |||
75 | /** |
||
76 | * Write Normal Log |
||
77 | * |
||
78 | * @param string $msg |
||
79 | */ |
||
80 | public function normal($msg) |
||
84 | |||
85 | /** |
||
86 | * Write SQL Log |
||
87 | * |
||
88 | * @param string $msg |
||
89 | */ |
||
90 | 4 | public function sql($msg) |
|
94 | } |
||
95 |
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.