Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
49 | View Code Duplication | public function __construct() |
|
50 | { |
||
51 | $this->connect = new mysqli( |
||
52 | getenv('DB_HOST'), |
||
53 | getenv('DB_USER'), |
||
54 | getenv('DB_PASSWORD'), |
||
55 | getenv('DB_NAME') |
||
56 | ); |
||
57 | } |
||
58 | |||
97 |
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.