diff --git a/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/associative_array.rst b/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/associative_array.rst index 55e8f25..045cb5b 100644 --- a/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/associative_array.rst +++ b/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/associative_array.rst @@ -47,9 +47,9 @@ Controller /** * @Soap\Method("sendAssocArray") * @Soap\Param("assocArray", phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]") - * @Soap\Return(phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]") + * @Soap\Result(phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]") */ - public function assocArrayOfStringAction(array $assocArray) + public function sendAssocArrayOfStringAction(array $assocArray) { // The $assocArray it's a real associative array // var_dump($assocArray);die; @@ -97,3 +97,4 @@ How to create my Associative Array? 'user2' => new User('user2', 'user2@user.com'), ); } + } diff --git a/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst b/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst index 0c8b84a..94893af 100644 --- a/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst +++ b/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst @@ -86,6 +86,16 @@ You can expose only the properties (public, protected or private) of a complex t */ private $newsletter; + /** + * @Soap\ComplexType("date") + */ + private $createdAt: + + /** + * @Soap\ComplexType("datetime") + */ + private $updatedAt; + public function getId() { return $this->id; @@ -128,7 +138,17 @@ You can expose only the properties (public, protected or private) of a complex t public function setNewsletter($newsletter) { - $this->newletter = (Boolean) $newsletter + $this->newletter = (Boolean) $newsletter; + } + + public function getCreatedAt() + { + return $this->createdAt; + } + + public function getUpdatedAt() + { + return this->updatedAt; } }