Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
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 |
||
50 | } |
||
51 | |||
52 | public function setAbout(string $about): self |
||
57 | } |
||
58 | } |
||
59 |