-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmatchBuilder.php
126 lines (102 loc) · 2.35 KB
/
matchBuilder.php
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
// src/Service/matchBuilder.php
namespace App\Service;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Response;
class matchBuilder
{
private $userA;
private $userB;
private $key;
private $round;
private $winPlayer;
private $losePlayer;
private $parent1;
private $parent2;
private $endedAt;
public function __construct($userA = null, $userB = null, $key = null, $round = 0, $winPlayer = null, $losePlayer = null, $parent1 = null, $parent2 = null, $endedAt = null)
{
$this->userA = $userA;
$this->userB = $userB;
$this->key = $key;
$this->round = $round;
$this->winPlayer = $winPlayer;
$this->losePlayer = $losePlayer;
$this->parent1 = $parent1;
$this->parent2 = $parent2;
$this->endedAt = $endedAt;
}
public function getUserA()
{
return $this->userA;
}
public function setUserA($userA): void
{
$this->userA = $userA;
}
public function getUserB()
{
return $this->userB;
}
public function setUserB($userB): void
{
$this->userB = $userB;
}
public function getKey()
{
return $this->key;
}
public function setKey($key): void
{
$this->key = $key;
}
public function getRound()
{
return $this->round;
}
public function setRound($round): void
{
$this->round = $round;
}
public function getWinPlayer()
{
return $this->winPlayer;
}
public function setWinPlayer($winPlayer): void
{
$this->winPlayer = $winPlayer;
}
public function getLosePlayer()
{
return $this->losePlayer;
}
public function setLosePlayer($losePlayer): void
{
$this->losePlayer = $losePlayer;
}
public function getParent1()
{
return $this->parent1;
}
public function setParent1($parent1): void
{
$this->parent1 = $parent1;
}
public function getParent2()
{
return $this->parent2;
}
public function setParent2($parent2): void
{
$this->parent2 = $parent2;
}
public function getEndedAt(): ?int
{
return $this->endedAt;
}
public function setEndedAt(?int $endedAt): self
{
$this->endedAt = $endedAt;
return $this;
}
}