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.
Completed
Push — master ( 1b1689...78d303 )
by
unknown
09:54
created

BannerTranslation   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
c 0
b 0
f 0
dl 0
loc 76
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setImageFile() 0 5 1
A getUrl() 0 3 1
A getImageFile() 0 3 1
A setImageName() 0 3 1
A getImageName() 0 3 1
A getId() 0 3 1
A __construct() 0 3 1
A setUrl() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusBannerPlugin\Entity;
6
7
use Sylius\Component\Resource\Model\AbstractTranslation;
8
use Sylius\Component\Resource\Model\TimestampableTrait;
9
use Symfony\Component\HttpFoundation\File\File;
10
11
class BannerTranslation extends AbstractTranslation implements BannerTranslationInterface
12
{
13
    use TimestampableTrait;
14
15
    /** @var int|null */
16
    private $id;
17
18
    /** @var File */
19
    private $imageFile;
20
21
    /** @var string */
22
    private $imageName;
23
24
    /** @var string|null */
25
    private $url;
26
27
    public function __construct()
28
    {
29
        $this->createdAt = new \DateTime();
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getId(): ?int
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function setImageFile(File $file): void
44
    {
45
        $this->imageFile = $file;
46
47
        $this->setUpdatedAt(new \DateTime());
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function getImageFile(): ?File
54
    {
55
        return $this->imageFile;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function setImageName($imageName): void
62
    {
63
        $this->imageName = $imageName;
64
    }
65
    /**
66
     * {@inheritdoc}
67
     */
68
    public function getImageName(): string
69
    {
70
        return $this->imageName;
71
    }
72
73
    /**
74
     * {@inheritdoc}
75
     */
76
    public function getUrl(): ?string
77
    {
78
        return $this->url;
79
    }
80
81
    /**
82
     * {@inheritdoc}
83
     */
84
    public function setUrl($url): void
85
    {
86
        $this->url = $url;
87
    }
88
}
89