The default is array. Other acceptable values are raw or any type specified in the Serializer documentation. A raw return will return the API response as a string.
Author: Nate Brunette (n@tebru.net)
Inheritance: implements Tebru\Dynamo\Annotation\DynamoAnnotation
コード例 #1
0
ファイル: ReturnsTest.php プロジェクト: nrip/retrofit-php
 public function testSimple()
 {
     $annotation = new Returns(['value' => 'test']);
     $this->assertEquals('test', $annotation->getReturn());
 }
コード例 #2
0
ファイル: ReturnsHandler.php プロジェクト: nrip/retrofit-php
 /**
  * @param Method $method
  * @param Returns $annotation
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->setReturn($annotation->getReturn());
 }