User   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 46
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAbout() 0 3 1
A setAbout() 0 5 1
A getName() 0 3 1
A setName() 0 5 1
1
<?php declare(strict_types = 1);
2
3
namespace Bukashk0zzz\FilterBundle\Tests\Fixtures;
4
5
use Bukashk0zzz\FilterBundle\Annotation\FilterAnnotation as Filter;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
/**
9
 * User Entity.
10
 */
11
class User
12
{
13
    /**
14
     * @Assert\Length(
15
     *     min=0,
16
     *     max=1
17
     * )
18
     *
19
     * @Filter("StripTags", options={"allowTags": "br"})
20
     * @Filter("StringTrim")
21
     * @Filter("StripNewlines")
22
     *
23
     * @var string
24
     */
25
    protected $name;
26
27
    /**
28
     * @Filter("StripTags")
29
     * @Filter("StringTrim")
30
     *
31
     * @var string
32
     */
33
    protected $about;
34
35
    public function getName(): ?string
36
    {
37
        return $this->name;
38
    }
39
40
    public function setName(string $name): self
41
    {
42
        $this->name = $name;
43
44
        return $this;
45
    }
46
47
    public function getAbout(): ?string
48
    {
49
        return $this->about;
50
    }
51
52
    public function setAbout(string $about): self
53
    {
54
        $this->about = $about;
55
56
        return $this;
57
    }
58
}
59