Uniformisation retour méthode

This commit is contained in:
Michael RICOIS 2011-02-03 08:46:11 +00:00
parent 6d91baf9ac
commit 987900d064
2 changed files with 7 additions and 4 deletions

View File

@ -1132,8 +1132,10 @@ class Etablissement
class DirigeantsReturn
{
/** @var int */
public $nbReponses;
/** @var Dirigeant[] */
public $dirigeants;
public $result;
}
class Dirigeant
@ -1200,7 +1202,7 @@ class AnnoncesReturn
/** @var int */
public $nbReponses;
/** @var Annonce[] */
public $annonces;
public $result;
}
class Annonce

View File

@ -453,7 +453,8 @@ class WsEntreprise extends WsScore
debugLog('I', 'Nb Dirigeants retournés = '. count($dirs), __LINE__, __FILE__, __FUNCTION__, __CLASS__);
$output = new DirigeantsReturn();
$output->dirigeants = $liste;
$output->nbReponses = count($liste);
$output->result = $liste;
return $output;
}
@ -708,7 +709,7 @@ class WsEntreprise extends WsScore
$output = new AnnoncesReturn();
$output->nbReponses = $nbReponses;
$output->annonces = $liste;
$output->result = $liste;
return $output;
}