PhalconRest\Transformers\Documentation\ApiCollectionTransformer::transform PHP Method

transform() public method

public transform ( ApiCollection $collection )
$collection PhalconRest\Export\Documentation\ApiCollection
    public function transform(DocumentationCollection $collection)
    {
        return ['name' => $collection->getName(), 'description' => $collection->getDescription(), 'prefix' => $collection->getPath(), 'fields' => $collection->getFields()];
    }
ApiCollectionTransformer