<?php 

namespace NPS\Factory;

use NPS\Entity\IEntity;
use NPS\Model\IDomainObject;

/**
 * Can be used to create object out of its doctrine entity
 * @author Lukas Korinek
 */
interface IObjectFactory
{
    /**
     * Creates an object out of its doctrine entity
     * @param IEntity $entity Entity object
     * @return IDomainObject
     */
    function make(IEntity $entity);
}

