Passed
Push — develop ( d64e19...d2a67e )
by BENARD
04:33
created

PictureTrait::setPicture()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Model\Entity;
4
5
trait PictureTrait
6
{
7
    /**
8
     * @Assert\Length(max="200")
9
     * @ORM\Column(name="picture", type="string", length=200, nullable=true)
10
     */
11
    private ?string $picture;
12
13
    /**
14
     * @param string|null $picture
15
     */
16
    public function setPicture(string $picture = null): void
17
    {
18
        $this->picture = $picture;
19
    }
20
21
    /**
22
     * @return string|null
23
     */
24
    public function getPicture(): ?string
25
    {
26
        return $this->picture;
27
    }
28
}
29