mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
98 lines
1.6 KiB
PHP
98 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace Entities;
|
|
|
|
|
|
/**
|
|
* Entities\LazaretCheck
|
|
*/
|
|
class LazaretCheck
|
|
{
|
|
/**
|
|
* @var integer $id
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var Entities\LazaretFile
|
|
*/
|
|
private $lazaretFile;
|
|
|
|
/**
|
|
* @var string $checkClassname
|
|
*/
|
|
private $checkClassname;
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* Get checker message
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
$className = $this->getCheckClassname();
|
|
|
|
if(method_exists($className, "getMessage")) {
|
|
return $className::getMessage();
|
|
} else {
|
|
return '';
|
|
}
|
|
}
|
|
}
|