VendorTranslation::getDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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