mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-10-31 20:56:08 +01:00
Merge branch 'bugfix/getResult()-returnsnull' into develop
This commit is contained in:
commit
35c4b8524d
@ -19,7 +19,7 @@ abstract class Game
|
|||||||
/** @var Pairing|null */
|
/** @var Pairing|null */
|
||||||
private $black;
|
private $black;
|
||||||
|
|
||||||
/** @var GameResult */
|
/** @var GameResult|null */
|
||||||
private $result;
|
private $result;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,18 +59,18 @@ abstract class Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Gameresult
|
* @return Gameresult|null
|
||||||
*/
|
*/
|
||||||
public function getResult(): Gameresult
|
public function getResult(): ?Gameresult
|
||||||
{
|
{
|
||||||
return $this->result;
|
return $this->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Gameresult $result
|
* @param Gameresult|null $result
|
||||||
* @return Game
|
* @return Game
|
||||||
*/
|
*/
|
||||||
public function setResult(Gameresult $result): Game
|
public function setResult(?Gameresult $result): Game
|
||||||
{
|
{
|
||||||
$this->result = $result;
|
$this->result = $result;
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
Reference in New Issue
Block a user