mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-29 09:56:15 +08:00
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:
committed by
Marcel Pociot
parent
db46be8edc
commit
6b1c502758
@@ -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 '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user