| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 29 | public function setTemplateData(array $templateData) |
||
| 30 | { |
||
| 31 | 1 | // Primary key can be empty in options list |
|
| 32 | $primaryKey = ''; |
||
| 33 | 1 | ||
| 34 | 1 | if (!empty($templateData['primaryKey'])) { |
|
| 35 | $primaryKey = '\'' . implode('\',\'', $templateData['primaryKey']) . '\''; |
||
| 36 | } |
||
| 37 | 1 | ||
| 38 | 1 | $templateData['primaryKey'] = $primaryKey; |
|
| 39 | 1 | $this->templateData = $templateData; |
|
| 40 | } |
||
| 42 |