|
|
@ -3,6 +3,7 @@
|
|
|
|
namespace IQBall\Core\Model;
|
|
|
|
namespace IQBall\Core\Model;
|
|
|
|
|
|
|
|
|
|
|
|
use IQBall\Core\Data\CourtType;
|
|
|
|
use IQBall\Core\Data\CourtType;
|
|
|
|
|
|
|
|
use IQBall\App\Session\SessionHandle;
|
|
|
|
use IQBall\Core\Data\TacticInfo;
|
|
|
|
use IQBall\Core\Data\TacticInfo;
|
|
|
|
use IQBall\Core\Gateway\TacticInfoGateway;
|
|
|
|
use IQBall\Core\Gateway\TacticInfoGateway;
|
|
|
|
use IQBall\Core\Validation\ValidationFail;
|
|
|
|
use IQBall\Core\Validation\ValidationFail;
|
|
|
@ -61,8 +62,8 @@ class TacticModel {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Return the nb last tactics
|
|
|
|
* Return the nb last tactics
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getLast(int $nb): ?array {
|
|
|
|
public function getLast(int $nb, int $ownerId): ?array {
|
|
|
|
return $this->tactics->getLast($nb);
|
|
|
|
return $this->tactics->getLast($nb, $ownerId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|