Merge branch 'ch3ric-fix-doc'

This commit is contained in:
Francis Besset 2014-08-13 06:55:07 +02:00
commit 1c1cd377f1
2 changed files with 24 additions and 3 deletions

View File

@ -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'),
);
}
}

View File

@ -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;
}
}