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

@@ -0,0 +1,81 @@
<?php
namespace Entities;
use Doctrine\ORM\Mapping as ORM;
/**
* Entities\LazaretCheck
*/
class LazaretCheck
{
/**
* @var integer $id
*/
private $id;
/**
* @var string $check
*/
private $check;
/**
* @var Entities\LazaretFile
*/
private $lazaretFile;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set check
*
* @param string $check
* @return LazaretCheck
*/
public function setCheck($check)
{
$this->check = $check;
return $this;
}
/**
* Get check
*
* @return string
*/
public function getCheck()
{
return $this->check;
}
/**
* 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;
}
}

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
*

View File

@@ -64,7 +64,7 @@ class LazaretSession
/**
* Get user
*
* @return \User_Adapte
* @return \User_Adapter
*/
public function getUser()
{
@@ -157,4 +157,4 @@ class LazaretSession
$this->files[] = $files;
return $this;
}
}
}