microservices-playground/api-comments

View on GitHub
src/AppBundle/Mapper/EntityToDtoMapper.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Foodlove\AppBundle\Mapper;

use Foodlove\AppBundle\Dto\Dto;
use Foodlove\AppBundle\Entity\Entity;

interface EntityToDtoMapper
{
    public function transform(Entity $entity): Dto;

    public function transformCollection(array $collection): array;
}