forked from tom.biard/ScienceQuest
parent
f57fe59f9b
commit
2ce216aea3
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace model;
|
||||||
|
|
||||||
|
class IndiceGateway
|
||||||
|
{
|
||||||
|
|
||||||
|
public function __construct(Connection $con)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromId(int $id) : array {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromScientifique(int $idScientifique) : array {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace model;
|
||||||
|
|
||||||
|
class PartieGateway
|
||||||
|
{
|
||||||
|
public function __construct(Connection $con)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromId(int $id) : Partie {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromCodeInvitation(string $code) : Partie {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function creerPartie(Jeu $jeu, Joueur $joueur) : Partie {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function rejoindrePartie(string $codeInvitation, Joueur $joueur) : bool {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function supprimerPartie(int $id) : bool {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace model;
|
||||||
|
|
||||||
|
class QuestionGateway
|
||||||
|
{
|
||||||
|
|
||||||
|
public function __construct(Connection $con)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRandom() : Question {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromId(int $id) : Question {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace model;
|
||||||
|
|
||||||
|
class ReponseGateway
|
||||||
|
{
|
||||||
|
|
||||||
|
public function __construct(Connection $con)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromId(int $id) : Reponse {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFromQuestion(int $idQuestion) : array {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue