NelmioApiDocBundle/Formatter/SimpleFormatter.php
Jordi Boggiano a74520057a Add license
2012-04-13 11:03:05 +02:00

40 lines
739 B
PHP

<?php
/*
* This file is part of the NelmioApiDocBundle.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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;
}
}