Uniformisation retour méthode
This commit is contained in:
parent
6d91baf9ac
commit
987900d064
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user