Add LazaretCheck, update LazaretFile

This commit is contained in:
Romain Neutron
2012-05-15 16:43:46 +02:00
parent fc0a7b87d9
commit e1c15e67ba
10 changed files with 760 additions and 39 deletions

View File

@@ -54,6 +54,21 @@ class LazaretFile
*/
private $session;
/**
* @var \Doctrine\Common\Collections\ArrayCollection
*/
private $checks;
/**
* @var string $originalName
*/
private $originalName;
/**
* @var boolean $forced
*/
private $forced = false;
public function __construct()
{
$this->attributes = new \Doctrine\Common\Collections\ArrayCollection();
@@ -244,11 +259,6 @@ class LazaretFile
{
return $this->session;
}
/**
* @var string $originalName
*/
private $originalName;
/**
* Set originalName
@@ -272,6 +282,50 @@ class LazaretFile
return $this->originalName;
}
/**
* Add checks
*
* @param Entities\LazaretCheck $checks
* @return LazaretFile
*/
public function addLazaretCheck(\Entities\LazaretCheck $checks)
{
$this->checks[] = $checks;
return $this;
}
/**
* Get checks
*
* @return Doctrine\Common\Collections\Collection
*/
public function getChecks()
{
return $this->checks;
}
/**
* Set forced
*
* @param boolean $forced
* @return LazaretFile
*/
public function setForced($forced)
{
$this->forced = $forced;
return $this;
}
/**
* Get forced
*
* @return boolean
*/
public function getForced()
{
return $this->forced;
}
/**
* Get the Destination Collection
*