@@ 9-19 (lines=11) @@ | ||
6 | ||
7 | class PreliminaryFight extends Fight |
|
8 | { |
|
9 | public function __construct(Fight $fight = null) |
|
10 | { |
|
11 | parent::__construct(); |
|
12 | if ($fight != null) { |
|
13 | $this->id = $fight->id; |
|
14 | $this->short_id = $fight->short_id; |
|
15 | $this->fighters_group_id = $fight->fighters_group_id; |
|
16 | $this->c1 = $fight->c1; |
|
17 | $this->c2 = $fight->c2; |
|
18 | } |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * Save all fights. |
@@ 7-17 (lines=11) @@ | ||
4 | ||
5 | class SingleEliminationFight extends Fight |
|
6 | { |
|
7 | public function __construct(Fight $fight = null) |
|
8 | { |
|
9 | parent::__construct(); |
|
10 | if ($fight != null) { |
|
11 | $this->id = $fight->id; |
|
12 | $this->short_id = $fight->short_id; |
|
13 | $this->fighters_group_id = $fight->fighters_group_id; |
|
14 | $this->c1 = $fight->c1; |
|
15 | $this->c2 = $fight->c2; |
|
16 | } |
|
17 | } |
|
18 | ||
19 | /** |
|
20 | * @param Championship $championship |