Email   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 8
dl 0
loc 41
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getId() 0 3 1
A setId() 0 4 1
1
<?php
2
3
namespace ProjetNormandie\EmailBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use ProjetNormandie\EmailBundle\Entity\Part;
7
use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
8
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
9
10
/**
11
 * Email
12
 *
13
 * @ORM\Table(name="email")
14
 * @ORM\Entity
15
 */
16
class Email implements TimestampableInterface
17
{
18
    use TimestampableTrait;
19
20
    // Includes the recipient and the sender mails.
21
    use Part\ParticipantTrait;
22
23
    // Includes the body to HTML and text format, the subject and the attachments.
24
    use Part\MessageTrait;
25
26
27
    /**
28
     * @ORM\Column(name="id", type="integer")
29
     * @ORM\Id
30
     * @ORM\GeneratedValue(strategy="IDENTITY")
31
     */
32
    private ?int $id = null;
33
34
    /**
35
     * Email Constructor.
36
     */
37
    public function __construct()
38
    {
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getId(): ?int
45
    {
46
        return $this->id;
47
    }
48
49
    /**
50
     * @param int $id
51
     * @return Email
52
     */
53
    public function setId(int $id): Email
54
    {
55
        $this->id = $id;
56
        return $this;
57
    }
58
}
59