Adddocblockhandling (#192)

* Add the handling for a @transformer @transformercollection or @result tag in the method docblock

* Update the readme to document the @transform, @transformercollection and @response tag

* Fix the styleci issues

* Apply patch form styleci

* Add a transformermodel tag and support PHP 5

* Fix the version without a modeltag

* Always use the transformermodel tag and a codestyle issue
This commit is contained in:
Tobias van Beek
2017-05-29 17:14:38 +02:00
committed by Marcel Pociot
parent db46be8edc
commit 6b1c502758
8 changed files with 359 additions and 2 deletions

View File

@@ -71,4 +71,48 @@ class TestController extends Controller
public function skip()
{
}
/**
* @response {
* data: [],
*}
*/
public function responseTag()
{
return '';
}
/**
* @transformer \Mpociot\ApiDoc\Tests\Fixtures\TestTransformer
*/
public function transformerTag()
{
return '';
}
/**
* @transformer \Mpociot\ApiDoc\Tests\Fixtures\TestTransformer
* @transformermodel \Mpociot\ApiDoc\Tests\Fixtures\TestModel
*/
public function transformerTagWithModel()
{
return '';
}
/**
* @transformercollection \Mpociot\ApiDoc\Tests\Fixtures\TestTransformer
*/
public function transformerCollectionTag()
{
return '';
}
/**
* @transformercollection \Mpociot\ApiDoc\Tests\Fixtures\TestTransformer
* @transformermodel \Mpociot\ApiDoc\Tests\Fixtures\TestModel
*/
public function transformerCollectionTagWithModel()
{
return '';
}
}