-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeam.php
More file actions
100 lines (72 loc) · 1.98 KB
/
Copy pathTeam.php
File metadata and controls
100 lines (72 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php declare(strict_types=1);
namespace TenjavaBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
class Team {
private $id;
private $name;
private $maxSize;
private $private;
private $generalRules;
private $prizeRules;
private $leader;
private $users;
public function __construct() {
$this->users = new ArrayCollection();
}
public function getId(): integer {
return $this->id;
}
public function setName(string $name): Team {
$this->name = $name;
return $this;
}
public function getName(): string {
return $this->name;
}
public function getMaxSize(): int {
return $this->maxSize;
}
public function setMaxSize(int $maxSize): Team {
$this->maxSize = $maxSize;
return $this;
}
public function getPrivate(): bool {
return $this->private;
}
public function setPrivate(bool $private): Team {
$this->private = $private;
return $this;
}
public function setGeneralRules(?string $generalRules): Team {
$this->generalRules = $generalRules;
return $this;
}
public function getGeneralRules(): ?string {
return $this->generalRules;
}
public function setPrizeRules(?string $prizeRules): Team {
$this->prizeRules = $prizeRules;
return $this;
}
public function getPrizeRules(): ?string {
return $this->prizeRules;
}
public function setLeader(User $leader = null): Team {
$this->leader = $leader;
return $this;
}
public function getLeader(): User {
return $this->leader;
}
public function addUser(User $user): Team {
$this->users[] = $user;
return $this;
}
public function removeUser(User $user) {
$this->users->removeElement($user);
}
public function getUsers(): Collection {
return $this->users;
}
}