mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add LazaretCheck, update LazaretFile
This commit is contained in:
81
lib/Doctrine/Entities/LazaretCheck.php
Normal file
81
lib/Doctrine/Entities/LazaretCheck.php
Normal 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;
|
||||
}
|
||||
}
|
@@ -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
|
||||
*
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user