Lines 100.00% 7 / 7
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
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
3namespace BO\Zmsbackend\Mail\Repository;
4
5class Mimepart extends \BO\Zmsbackend\Query\Base
6{
7    /**
8     * @var String TABLE mysql table reference
9     */
10    const string TABLE = 'mailpart';
11
12    /**
13     * No resolving required here
14     */
15    protected $resolveLevel = 0;
16
17    /**
18     * @psalm-api
19     *
20     * @return string[]
21     *
22     */
23    public function getEntityMapping(): array
24    {
25        return [
26            'mime' => 'mimepart.mime',
27            'content' => 'mimepart.content',
28            'base64' => 'mimepart.base64',
29        ];
30    }
31
32    public function addConditionQueueId($queueId): static
33    {
34        $this->query->where('mimepart.queueId', '=', $queueId);
35        return $this;
36    }
37}