Fix the rolls and my rolls types

This commit is contained in:
Tim 2021-12-03 01:26:50 +01:00
parent 43269f1840
commit eea8109625

View File

@ -58,8 +58,8 @@ class Round implements ModelInterface, ArrayAccess {
'number' => 'int', 'number' => 'int',
'turns' => Turn::class . '[]', 'turns' => Turn::class . '[]',
'loser' => Player::class, 'loser' => Player::class,
'my_rolls' => 'int[]', 'my_rolls' => 'object',
'rolls' => 'int[][]', 'rolls' => 'object',
]; ];
/** /**
@ -281,7 +281,7 @@ class Round implements ModelInterface, ArrayAccess {
/** /**
* Gets my_rolls * Gets my_rolls
* *
* @return int[][] * @return int[]
*/ */
public function getMyRolls() { public function getMyRolls() {
return $this->container['my_rolls']; return $this->container['my_rolls'];
@ -290,7 +290,7 @@ class Round implements ModelInterface, ArrayAccess {
/** /**
* Sets my_rolls * Sets my_rolls
* *
* @param int[][] $my_rolls my_rolls * @param int[] $my_rolls my_rolls
* *
* @return $this * @return $this
*/ */
@ -303,7 +303,7 @@ class Round implements ModelInterface, ArrayAccess {
/** /**
* Gets rolls * Gets rolls
* *
* @return int[] * @return int[][]
*/ */
public function getRolls() { public function getRolls() {
return $this->container['rolls']; return $this->container['rolls'];
@ -312,7 +312,7 @@ class Round implements ModelInterface, ArrayAccess {
/** /**
* Sets rolls * Sets rolls
* *
* @param int[] $rolls rolls * @param int[][] $rolls rolls
* *
* @return $this * @return $this
*/ */