HasPositions
Trait Positions
A trait for a Team class (maybe something else in the future) for logging positions (first, second,..).
Tags
Table of Contents
- $groupResults : array<string|int, mixed>
- addDraw() : $this
- Adds a draw to the team
- addLoss() : $this
- Adds a loss to the team
- addSecond() : $this
- Add points for being second to the team
- addThird() : $this
- Add points for being third to the team
- addWin() : $this
- Adds a win to the team
- removeDraw() : $this
- Remove a draw from the team
- removeLoss() : $this
- Remove a loss from the team
- removeSecond() : $this
- Remove points for being second from the team
- removeThird() : $this
- Remove points for being third from the team
- removeWin() : $this
- Remove a win from the team
Properties
$groupResults
public
array<string|int, mixed>
$groupResults
= []
Tags
Methods
addDraw()
Adds a draw to the team
public
addDraw([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —addLoss()
Adds a loss to the team
public
addLoss([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —addSecond()
Add points for being second to the team
public
addSecond([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —addThird()
Add points for being third to the team
public
addThird([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —addWin()
Adds a win to the team
public
addWin([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —removeDraw()
Remove a draw from the team
public
removeDraw([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —removeLoss()
Remove a loss from the team
public
removeLoss([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —removeSecond()
Remove points for being second from the team
public
removeSecond([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —removeThird()
Remove points for being third from the team
public
removeThird([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from
Tags
Return values
$this —removeWin()
Remove a win from the team
public
removeWin([string|int|null $groupId = '' ]) : $this
Parameters
- $groupId : string|int|null = ''
-
An id of group to add the results from