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 ( aad278...8da90f )
by
unknown
04:35
created

BannerTranslation::getMobileImageFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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 File */
25
    private $mobileImageFile;
26
27
    /** @var string */
28
    private $mobileImageName;
29
30
    /** @var string|null */
31
    private $url;
32
33
    public function __construct()
34
    {
35
        $this->createdAt = new \DateTime();
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function getId(): ?int
42
    {
43
        return $this->id;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function setImageFile(File $file): void
50
    {
51
        $this->imageFile = $file;
52
53
        $this->setUpdatedAt(new \DateTime());
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function getImageFile(): ?File
60
    {
61
        return $this->imageFile;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function setImageName(string $imageName): void
68
    {
69
        $this->imageName = $imageName;
70
    }
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public function getImageName(): string
75
    {
76
        return $this->imageName;
77
    }
78
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function setMobileImageFile(File $file): void
83
    {
84
        $this->mobileImageFile = $file;
85
86
        $this->setUpdatedAt(new \DateTime());
87
    }
88
89
    /**
90
     * {@inheritdoc}
91
     */
92
    public function getMobileImageFile(): ?File
93
    {
94
        return $this->mobileImageFile;
95
    }
96
97
    /**
98
     * {@inheritdoc}
99
     */
100
    public function setMobileImageName(string $mobileImageName): void
101
    {
102
        $this->mobileImageName = $mobileImageName;
103
    }
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public function getMobileImageName(): string
108
    {
109
        return $this->mobileImageName;
110
    }
111
112
    /**
113
     * {@inheritdoc}
114
     */
115
    public function setUrl(?string $url): void
116
    {
117
        $this->url = $url;
118
    }
119
120
    /**
121
     * {@inheritdoc}
122
     */
123
    public function getUrl(): ?string
124
    {
125
        return $this->url;
126
    }
127
}
128