Files
Phraseanet/lib/Alchemy/Phrasea/Border/Checker/CheckerInterface.php
2013-01-21 23:28:58 +01:00

45 lines
965 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2013 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Border\Checker;
use Alchemy\Phrasea\Border\File;
use Doctrine\ORM\EntityManager;
/**
* The checker interface
*/
interface CheckerInterface
{
/**
* Checks constraints on the file
*
* @param EntityManager $em The entity manager
* @param File $file The file package object
* @return Response A Response object
*/
public function check(EntityManager $em, File $file);
/**
* Checks if a Checker is applicable on a file
*
* @param File $file The file package object
* @return Boolean
*/
public function isApplicable(File $file);
/**
* Get a localized message about the Checker
*/
public static function getMessage();
}