VendorEmail::setValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 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