Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
13 / 13 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
Notification | |
100.00% |
13 / 13 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
getEntityMapping | |
100.00% |
11 / 11 |
|
100.00% |
1 / 1 |
1 | |||
addConditionItemId | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace BO\Zmsdb\Query; |
4 | |
5 | class Notification extends Base |
6 | { |
7 | /** |
8 | * @var String TABLE mysql table reference |
9 | */ |
10 | const TABLE = 'notificationqueue'; |
11 | |
12 | const QUERY_WRITE_IN_CALCULATION = ' |
13 | REPLACE INTO |
14 | abrechnung |
15 | SET |
16 | StandortID=?, |
17 | Telefonnummer=?, |
18 | Datum=?, |
19 | gesendet=? |
20 | '; |
21 | |
22 | public function getEntityMapping() |
23 | { |
24 | return [ |
25 | 'id' => 'notification.id', |
26 | 'createIP' => 'notification.createIP', |
27 | 'createTimestamp' => 'notification.createTimestamp', |
28 | 'message' => 'notification.message', |
29 | 'client__telephone' => 'notification.clientTelephone', |
30 | 'client__familyName' => 'notification.clientFamilyName', |
31 | 'process__id' => 'notification.processID', |
32 | 'department__id' => 'notification.departmentID', |
33 | 'process__scope__id' => 'notification.scopeID' |
34 | ]; |
35 | } |
36 | |
37 | public function addConditionItemId($itemId) |
38 | { |
39 | $this->query->where('notification.id', '=', $itemId); |
40 | return $this; |
41 | } |
42 | } |