Fix Doc
This commit is contained in:
parent
e4cb612aed
commit
5e8e669299
|
@ -47,9 +47,9 @@ Controller
|
||||||
/**
|
/**
|
||||||
* @Soap\Method("sendAssocArray")
|
* @Soap\Method("sendAssocArray")
|
||||||
* @Soap\Param("assocArray", phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
|
* @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
|
// The $assocArray it's a real associative array
|
||||||
// var_dump($assocArray);die;
|
// var_dump($assocArray);die;
|
||||||
|
@ -97,3 +97,4 @@ How to create my Associative Array?
|
||||||
'user2' => new User('user2', 'user2@user.com'),
|
'user2' => new User('user2', 'user2@user.com'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -86,6 +86,16 @@ You can expose only the properties (public, protected or private) of a complex t
|
||||||
*/
|
*/
|
||||||
private $newsletter;
|
private $newsletter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Soap\ComplexType("date")
|
||||||
|
*/
|
||||||
|
private $createdAt:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Soap\ComplexType("datetime")
|
||||||
|
*/
|
||||||
|
private $updatedAt;
|
||||||
|
|
||||||
public function getId()
|
public function getId()
|
||||||
{
|
{
|
||||||
return $this->id;
|
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)
|
public function setNewsletter($newsletter)
|
||||||
{
|
{
|
||||||
$this->newletter = (Boolean) $newsletter
|
$this->newletter = (Boolean) $newsletter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCreatedAt()
|
||||||
|
{
|
||||||
|
return $this->createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUpdatedAt()
|
||||||
|
{
|
||||||
|
return this->updatedAt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue