NelmioApiDocBundle/Formatter/SimpleFormatter.php
2012-04-12 18:37:42 +02:00

31 lines
520 B
PHP

<?php
namespace Nelmio\ApiDocBundle\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;
}
}