Correction CI
continuous-integration/drone/push Build is failing Details

pull/18/head
DahmaneYanis 1 year ago
parent b489364cd2
commit 5b9096ab35

@ -12,13 +12,11 @@ use App\Model\TacticModel;
class UserController {
private TacticModel $tacticMdl;
private AuthModel $accountMdl;
public function __construct()
{
$con = new Connexion(get_database());
$this->tacticMdl = new TacticModel(new TacticInfoGateway($con));
$this->accountMdl = new AuthModel(new AuthGateway($con));
}
public function home(): HttpResponse {

@ -35,7 +35,7 @@ class TacticInfoGateway {
* Return the nb last tactics created
*
* @param integer $nb
* @return array|null
* @return TacticInfo[]
*/
public function getLast(int $nb) : ?array {
$res = $this->con->fetch(

@ -35,6 +35,12 @@ class TacticModel {
return $this->tactics->get($id);
}
/**
* Return the nb last tactics created
*
* @param integer $nb
* @return TacticInfo[]
*/
public function getLast(int $nb) : ?array {
return $this->tactics->getLast($nb);
}

Loading…
Cancel
Save