Passed
Push — develop ( 4a5a66...90be87 )
by BENARD
04:36
created

PictureTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 22
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPicture() 0 3 1
A getPicture() 0 3 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\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