Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function createSQL() { |
||
23 | $quote = $this->db->quote; |
||
24 | $tableName = OrmUtils::getTableName ( $this->class ); |
||
25 | $this->parameters = \array_keys ( $this->instances ); |
||
26 | $count = \count ( $this->parameters ); |
||
27 | |||
28 | return "DELETE FROM {$quote}{$tableName}{$quote} WHERE {$quote}{$this->pkName}{$quote} IN (" . \implode ( ',', \array_fill ( 0, $count, '?' ) ) . ')'; |
||
29 | } |
||
32 |