| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 2 | public function create(string $table, array $attributes): self |
|
| 11 | { |
||
| 12 | 2 | $this->attributes = $attributes; |
|
| 13 | 2 | $this->statement = 'INSERT INTO `' . $table . '` (`'; |
|
| 14 | 2 | $this->statement .= Tool::getAttributesKey($attributes); |
|
| 15 | 2 | $this->statement .= '`) VALUES (:'; |
|
| 16 | 2 | $this->statement .= Tool::getAttributesValue($attributes) . ')'; |
|
| 17 | 2 | return $this; |
|
| 18 | } |
||
| 57 |