Permalink
Browse files

Fix CS.

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP_Interop/trunk@264258 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Jan Schneider
Jan Schneider committed Aug 5, 2008
1 parent a57ca9d commit a8f0987a524693d01a51af0707e70507a6b890fe
Showing with 20 additions and 8 deletions.
  1. +20 −8 params_classes.php
View
@@ -18,29 +18,41 @@
//
// $Id$
//
+
require_once 'SOAP/Value.php';
class SOAPStruct {
+
var $varString;
var $varInt;
var $varFloat;
- function SOAPStruct($s=NULL, $i=NULL, $f=NULL) {
+
+ function SOAPStruct($s = null, $i = null, $f = null)
+ {
$this->varString = $s;
$this->varInt = $i;
$this->varFloat = $f;
}
- function __to_soap($name = 'inputStruct', $header=false, $mustUnderstand=0, $actor='http://schemas.xmlsoap.org/soap/actor/next')
+ function __to_soap($name = 'inputStruct', $header = false,
+ $mustUnderstand = 0,
+ $actor = 'http://schemas.xmlsoap.org/soap/actor/next')
{
- $inner[] = new SOAP_Value('varString','string',$this->varString);
- $inner[] = new SOAP_Value('varInt','int',$this->varInt);
- $inner[] = new SOAP_Value('varFloat','float',$this->varFloat);
+ $inner = array(new SOAP_Value('varString', 'string', $this->varString),
+ new SOAP_Value('varInt', 'int', $this->varInt),
+ new SOAP_Value('varFloat', 'float', $this->varFloat));
if ($header) {
- return new SOAP_Header($name,'{http://soapinterop.org/xsd}SOAPStruct',$inner,$mustUnderstand,$actor);
+ return new SOAP_Header($name,
+ '{http://soapinterop.org/xsd}SOAPStruct',
+ $inner,
+ $mustUnderstand,
+ $actor);
}
- return new SOAP_Value($name,'{http://soapinterop.org/xsd}SOAPStruct',$inner);
-
+ return new SOAP_Value($name,
+ '{http://soapinterop.org/xsd}SOAPStruct',
+ $inner);
}
+
}
class SOAPStructStruct {

0 comments on commit a8f0987

Please sign in to comment.