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

PictureTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 22
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\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