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.

VendorTranslation   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A getId() 0 3 1
A __construct() 0 3 1
A setDescription() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusVendorPlugin\Entity;
6
7
use Sylius\Component\Resource\Model\AbstractTranslation;
8
use Sylius\Component\Resource\Model\TimestampableTrait;
9
10
class VendorTranslation extends AbstractTranslation implements VendorTranslationInterface
11
{
12
    use TimestampableTrait;
13
14
    /** @var int|null */
15
    protected $id;
16
17
    /** @var string|null */
18
    private $description;
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 getDescription(): ?string
37
    {
38
        return $this->description;
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function setDescription(?string $description): void
45
    {
46
        $this->description = $description;
47
    }
48
}
49