NelmioApiDocBundle/Formatter/SimpleFormatter.php

31 lines
520 B
PHP
Raw Normal View History

2012-04-12 01:28:36 +02:00
<?php
2012-04-12 18:37:42 +02:00
namespace Nelmio\ApiDocBundle\Formatter;
2012-04-12 01:28:36 +02:00
class SimpleFormatter extends AbstractFormatter
{
/**
* {@inheritdoc}
*/
protected function renderOne(array $data)
2012-04-12 01:28:36 +02:00
{
return $data;
}
/**
* {@inheritdoc}
*/
protected function renderResourceSection($resource, array $arrayOfData)
{
return array($resource => $arrayOfData);
}
/**
* {@inheritdoc}
*/
protected function render(array $collection)
{
return $collection;
}
2012-04-12 01:28:36 +02:00
}