Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
Mimepart | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
getEntityMapping | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 | |||
addConditionQueueId | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace BO\Zmsdb\Query; |
4 | |
5 | class Mimepart extends Base |
6 | { |
7 | /** |
8 | * @var String TABLE mysql table reference |
9 | */ |
10 | const TABLE = 'mailpart'; |
11 | |
12 | /** |
13 | * No resolving required here |
14 | */ |
15 | protected $resolveLevel = 0; |
16 | |
17 | public function getEntityMapping() |
18 | { |
19 | return [ |
20 | 'mime' => 'mimepart.mime', |
21 | 'content' => 'mimepart.content', |
22 | 'base64' => 'mimepart.base64', |
23 | ]; |
24 | } |
25 | |
26 | public function addConditionQueueId($queueId) |
27 | { |
28 | $this->query->where('mimepart.queueId', '=', $queueId); |
29 | return $this; |
30 | } |
31 | } |