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