From 987900d06444b2d58afbb3b8e4a2f0d2253f8d78 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 3 Feb 2011 08:46:11 +0000 Subject: [PATCH] =?UTF-8?q?Uniformisation=20retour=20m=C3=A9thode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/WsScore/Types/EntrepriseTypes.php | 6 ++++-- library/WsScore/WsEntreprise.php | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/library/WsScore/Types/EntrepriseTypes.php b/library/WsScore/Types/EntrepriseTypes.php index 495b7db8..9ce7571c 100644 --- a/library/WsScore/Types/EntrepriseTypes.php +++ b/library/WsScore/Types/EntrepriseTypes.php @@ -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 diff --git a/library/WsScore/WsEntreprise.php b/library/WsScore/WsEntreprise.php index 92e67dff..85fe6381 100644 --- a/library/WsScore/WsEntreprise.php +++ b/library/WsScore/WsEntreprise.php @@ -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; }