<?php

namespace Comitium5\DesignerBundle\Validator;

use Comitium5\DesignerBundle\Model\Interfaces\IdentifiableInterface;

/**
 * Interface EntityValidatorInterface
 *
 * Joan Pont <joan.pont@bab-soft.com>
 * @package Comitium5\DesignerBundle\Validator
 */
interface EntityValidatorInterface
{
    /**
     * @param IdentifiableInterface $entity
     * @param array $constraints
     *
     * @return mixed
     */
    public function validate(IdentifiableInterface $entity, array $constraints);
}