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

PlayerCommunicationDataTrait   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 6
eloc 13
dl 0
loc 66
c 0
b 0
f 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setTwitch() 0 4 1
A getYoutube() 0 3 1
A getWebsite() 0 3 1
A setYoutube() 0 4 1
A getTwitch() 0 3 1
A setWebsite() 0 4 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\Entity\Player;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait PlayerCommunicationDataTrait
8
{
9
    /**
10
     * @ORM\Column(name="website", type="string", length=255, nullable=true)
11
     */
12
    protected ?string $website;
13
14
    /**
15
     * @ORM\Column(name="youtube", type="string", length=255, nullable=true)
16
     */
17
    protected ?string $youtube;
18
19
    /**
20
     * @ORM\Column(name="twitch", type="string", length=255, nullable=true)
21
     */
22
    protected ?string $twitch;
23
24
    public function getWebsite(): ?string
25
    {
26
        return $this->website;
27
    }
28
29
    /**
30
     * @param string|null $website
31
     * @return $this
32
     */
33
    public function setWebsite(string $website = null): static
34
    {
35
        $this->website = $website;
36
        return $this;
37
    }
38
39
    /**
40
     * @return string|null
41
     */
42
    public function getYoutube(): ?string
43
    {
44
        return $this->youtube;
45
    }
46
47
    /**
48
     * @param string|null $youtube
49
     * @return $this
50
     */
51
    public function setYoutube(string $youtube = null): static
52
    {
53
        $this->youtube = $youtube;
54
        return $this;
55
    }
56
57
    /**
58
     * @return string|null
59
     */
60
    public function getTwitch(): ?string
61
    {
62
        return $this->twitch;
63
    }
64
65
    /**
66
     * @param string|null $twitch
67
     * @return $this
68
     */
69
    public function setTwitch(string $twitch = null): static
70
    {
71
        $this->twitch = $twitch;
72
        return $this;
73
    }
74
}