<?php

namespace Comitium5\DesignerBundle\Validator;

use Comitium5\DesignerBundle\Model\Interfaces\IdentifiableInterface;

/**
 * Interface EntityValidatorConstraintInterface
 *
 * Joan Pont <joan.pont@bab-soft.com>
 * @package Comitium5\DesignerBundle\Validator
 */
interface EntityValidatorConstraintInterface
{
    /**
     * @param IdentifiableInterface $entity
     *
     * @return bool
     */
    public function check(IdentifiableInterface $entity) : bool;

    /**
     * @return string
     */
    public function getMessage() : string;
}
