Passed
Push — develop ( 6aacf8...6c0b7f )
by BENARD
11:52
created

ThumbnailTrait::setThumbnail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\Entity;
4
5
trait ThumbnailTrait
6
{
7
    /**
8
     * @ORM\Column(name="thumbnail", type="string", length=255, nullable=true)
9
     */
10
    private ?string $thumbnail;
11
12
    /**
13
     * Set thumbnail
14
     * @param string|null $thumbnail
15
     * @return $this
16
     */
17
    public function setThumbnail(?string $thumbnail): static
18
    {
19
        $this->thumbnail = $thumbnail;
20
21
        return $this;
22
    }
23
24
    /**
25
     * Get thumbnail
26
     * @return string|null
27
     */
28
    public function getThumbnail(): ?string
29
    {
30
        return $this->thumbnail;
31
    }
32
}
33