mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
106 lines
1.7 KiB
PHP
106 lines
1.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2014 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Entities;
|
|
|
|
/**
|
|
* LazaretCheck
|
|
*/
|
|
class LazaretCheck
|
|
{
|
|
/**
|
|
* @var integer
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $checkClassname;
|
|
|
|
/**
|
|
* @var \Entities\LazaretFile
|
|
*/
|
|
private $lazaretFile;
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set checkClassname
|
|
*
|
|
* @param string $checkClassname
|
|
* @return LazaretCheck
|
|
*/
|
|
public function setCheckClassname($checkClassname)
|
|
{
|
|
$this->checkClassname = $checkClassname;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get checkClassname
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCheckClassname()
|
|
{
|
|
return $this->checkClassname;
|
|
}
|
|
|
|
/**
|
|
* Set lazaretFile
|
|
*
|
|
* @param \Entities\LazaretFile $lazaretFile
|
|
* @return LazaretCheck
|
|
*/
|
|
public function setLazaretFile(\Entities\LazaretFile $lazaretFile = null)
|
|
{
|
|
$this->lazaretFile = $lazaretFile;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get lazaretFile
|
|
*
|
|
* @return \Entities\LazaretFile
|
|
*/
|
|
public function getLazaretFile()
|
|
{
|
|
return $this->lazaretFile;
|
|
}
|
|
|
|
/**
|
|
* Get checker message
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
$className = $this->getCheckClassname();
|
|
|
|
if (method_exists($className, "getMessage")) {
|
|
return $className::getMessage();
|
|
} else {
|
|
return '';
|
|
}
|
|
}
|
|
}
|