VendorEmail   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 9
dl 0
loc 38
rs 10
c 1
b 0
f 1
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getValue() 0 3 1
A setValue() 0 3 1
A getId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusVendorPlugin\Entity;
6
7
use Sylius\Component\Resource\Model\TimestampableTrait;
8
9
class VendorEmail implements VendorEmailInterface
10
{
11
    use VendorTrait;
12
    use TimestampableTrait;
13
14
    /** @var int|null */
15
    protected $id;
16
17
    /** @var string|null */
18
    protected $value;
19
20
    public function __construct()
21
    {
22
        $this->createdAt = new \DateTime();
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getId(): ?int
29
    {
30
        return $this->id;
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function getValue(): ?string
37
    {
38
        return $this->value;
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function setValue(?string $value): void
45
    {
46
        $this->value = $value;
47
    }
48
}
49