mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
31 lines
517 B
PHP
31 lines
517 B
PHP
<?php
|
|
|
|
namespace Nelmio\ApiBundle\Formatter;
|
|
|
|
class SimpleFormatter extends AbstractFormatter
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function renderOne(array $data)
|
|
{
|
|
return $data;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function renderResourceSection($resource, array $arrayOfData)
|
|
{
|
|
return array($resource => $arrayOfData);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function render(array $collection)
|
|
{
|
|
return $collection;
|
|
}
|
|
}
|