| Total Complexity | 6 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 73 | } |
||
| 74 | } |