GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 83575f...b31e19 )
by
unknown
04:46
created

VendorEmail   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 11
dl 0
loc 56
rs 10
c 1
b 0
f 1
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setVendor() 0 3 1
A getVendor() 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 TimestampableTrait;
12
13
    /** @var int|null */
14
    private $id;
15
16
    /** @var string|null */
17
    private $value;
18
19
    /** @var VendorInterface */
20
    protected $vendor;
21
22
    public function __construct()
23
    {
24
        $this->createdAt = new \DateTime();
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
35
    /**
36
     * @inheritdoc
37
     */
38
    public function getValue(): ?string
39
    {
40
        return $this->value;
41
    }
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public function setValue(?string $value): void
47
    {
48
        $this->value = $value;
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function getVendor(): ?VendorInterface
55
    {
56
        return $this->vendor;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function setVendor(?VendorInterface $vendor): void
63
    {
64
        $this->vendor = $vendor;
65
    }
66
}
67