4,9 → 4,12 |
private $resultatService = null; |
private $erreurs = array(); |
|
public function __construct() { |
$this->resultatService = new ResultatService(); |
} |
|
public function setResultatService($resultat) { |
if (!($resultat instanceof ResultatService)) { |
$this->resultatService = new ResultatService(); |
$this->resultatService->corps = $resultat; |
} else { |
$this->resultatService = $resultat; |
15,7 → 18,7 |
|
public function getCorps() { |
if ($this->etreEnErreur()) { |
$this->resultatService->corps = $this->erreursHttp[0]['message']; |
$this->resultatService->corps = $this->erreurs[0]['message']; |
} else { |
$this->transformerReponseCorpsSuivantMime(); |
} |