Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function __construct(string $table, array $dat_ass) |
||
8 | { |
||
9 | // Check if the given data is a non-empty array, and throw an exception if it is not |
||
10 | if (empty($dat_ass)) { |
||
11 | throw new \InvalidArgumentException('EMPTY_DATA'); |
||
12 | } |
||
13 | |||
14 | $this->table = $table; |
||
15 | $this->addBindings($dat_ass); |
||
16 | } |
||
35 |