Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
18 | protected function updateContextCounters($entity) |
||
19 | { |
||
20 | // increment context counter |
||
21 | $identifier = $this->databaseHelper->getIdentifier($entity); |
||
22 | if ($identifier) { |
||
23 | $this->context->incrementUpdateCount(); |
||
24 | } else { |
||
25 | $this->context->incrementAddCount(); |
||
26 | } |
||
27 | |||
28 | return $entity; |
||
29 | } |
||
30 | |||
54 |