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 ( 0aff50...8587c1 )
by Odiseo
09:40
created

BannerTranslation::setMainText()   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
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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|null */
19
    private $imageFile;
20
21
    /** @var string|null */
22
    private $imageName;
23
24
    /** @var File|null */
25
    private $mobileImageFile;
26
27
    /** @var string|null */
28
    private $mobileImageName;
29
30
    /** @var string|null */
31
    private $url;
32
33
    /** @var string|null */
34
    private $mainText;
35
36
    /** @var string|null */
37
    private $secondaryText;
38
39
    public function __construct()
40
    {
41
        $this->createdAt = new \DateTime();
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getId(): ?int
48
    {
49
        return $this->id;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function setImageFile(?File $file): void
56
    {
57
        $this->imageFile = $file;
58
59
        $this->setUpdatedAt(new \DateTime());
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function getImageFile(): ?File
66
    {
67
        return $this->imageFile;
68
    }
69
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function setImageName(?string $imageName): void
74
    {
75
        $this->imageName = $imageName;
76
    }
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function getImageName(): ?string
81
    {
82
        return $this->imageName;
83
    }
84
85
    /**
86
     * {@inheritdoc}
87
     */
88
    public function setMobileImageFile(?File $file): void
89
    {
90
        $this->mobileImageFile = $file;
91
92
        $this->setUpdatedAt(new \DateTime());
93
    }
94
95
    /**
96
     * {@inheritdoc}
97
     */
98
    public function getMobileImageFile(): ?File
99
    {
100
        return $this->mobileImageFile;
101
    }
102
103
    /**
104
     * {@inheritdoc}
105
     */
106
    public function setMobileImageName(?string $mobileImageName): void
107
    {
108
        $this->mobileImageName = $mobileImageName;
109
    }
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function getMobileImageName(): ?string
114
    {
115
        return $this->mobileImageName;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function setUrl(?string $url): void
122
    {
123
        $this->url = $url;
124
    }
125
126
    /**
127
     * {@inheritdoc}
128
     */
129
    public function getUrl(): ?string
130
    {
131
        return $this->url;
132
    }
133
134
    /**
135
     * @param string|null $mainText
136
     */
137
    public function setMainText(?string $mainText): void
138
    {
139
        $this->mainText = $mainText;
140
    }
141
142
    /**
143
     * @return string|null
144
     */
145
    public function getMainText(): ?string
146
    {
147
        return $this->mainText;
148
    }
149
150
    /**
151
     * @param string|null $secondaryText
152
     */
153
    public function setSecondaryText(?string $secondaryText): void
154
    {
155
        $this->secondaryText = $secondaryText;
156
    }
157
158
    /**
159
     * @return string|null
160
     */
161
    public function getSecondaryText(): ?string
162
    {
163
        return $this->secondaryText;
164
    }
165
}
166