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
Example #1
0
 public function testSimple()
 {
     $annotation = new Returns(['value' => 'test']);
     $this->assertEquals('test', $annotation->getReturn());
 }
Example #2
0
 /**
  * @param Method $method
  * @param Returns $annotation
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->setReturn($annotation->getReturn());
 }