Skip to content

Commit 1c1cd37

Browse files
committed
Merge branch 'ch3ric-fix-doc'
2 parents ccc4d57 + 1efa348 commit 1c1cd37

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/associative_array.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Controller
4747
/**
4848
* @Soap\Method("sendAssocArray")
4949
* @Soap\Param("assocArray", phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
50-
* @Soap\Return(phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
50+
* @Soap\Result(phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
5151
*/
52-
public function assocArrayOfStringAction(array $assocArray)
52+
public function sendAssocArrayOfStringAction(array $assocArray)
5353
{
5454
// The $assocArray it's a real associative array
5555
// var_dump($assocArray);die;
@@ -97,3 +97,4 @@ How to create my Associative Array?
9797
'user2' => new User('user2', '[email protected]'),
9898
);
9999
}
100+
}

src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ You can expose only the properties (public, protected or private) of a complex t
8686
*/
8787
private $newsletter;
8888
89+
/**
90+
* @Soap\ComplexType("date")
91+
*/
92+
private $createdAt:
93+
94+
/**
95+
* @Soap\ComplexType("datetime")
96+
*/
97+
private $updatedAt;
98+
8999
public function getId()
90100
{
91101
return $this->id;
@@ -128,7 +138,17 @@ You can expose only the properties (public, protected or private) of a complex t
128138
129139
public function setNewsletter($newsletter)
130140
{
131-
$this->newletter = (Boolean) $newsletter
141+
$this->newletter = (Boolean) $newsletter;
142+
}
143+
144+
public function getCreatedAt()
145+
{
146+
return $this->createdAt;
147+
}
148+
149+
public function getUpdatedAt()
150+
{
151+
return this->updatedAt;
132152
}
133153
}
134154

0 commit comments

Comments
 (0)