Files
Phraseanet/lib/Doctrine/Entities/ValidationParticipant.php
Nicolas Le Goff cea1e026bf add setter
2011-12-20 13:37:23 +01:00

153 lines
2.3 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2010 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Entities;
/**
*
* @package
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class ValidationParticipant
{
/**
* @var integer $id
*/
private $id;
/**
* @var integer $usr_id
*/
private $usr_id;
/**
* @var Entities\ValidationData
*/
private $datases;
/**
* @var Entities\ValidationSession
*/
private $session;
public function __construct()
{
$this->datases = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set usr_id
*
* @param integer $usrId
*/
public function setUsrId($usrId)
{
$this->usr_id = $usrId;
}
/**
* Get usr_id
*
* @return integer
*/
public function getUsrId()
{
return $this->usr_id;
}
/**
* Add datases
*
* @param Entities\ValidationData $datases
*/
public function addValidationData(\Entities\ValidationData $datases)
{
$this->datases[] = $datases;
}
/**
* Get datases
*
* @return Doctrine\Common\Collections\Collection
*/
public function getDatases()
{
return $this->datases;
}
/**
* Set session
*
* @param Entities\ValidationSession $session
*/
public function setSession(\Entities\ValidationSession $session)
{
$this->session = $session;
}
/**
* Get session
*
* @return Entities\ValidationSession
*/
public function getSession()
{
return $this->session;
}
/**
* @var boolean $is_aware
*/
private $is_aware = false;
/**
* Set is_aware
*
* @param boolean $isAware
*/
public function setIsAware($isAware)
{
$this->is_aware = $isAware;
}
/**
* Get is_aware
*
* @return boolean
*/
public function getIsAware()
{
return $this->is_aware;
}
/**
*
* @param \User_Adapter $user
* @return ValidationParticipant
*/
public function setParticipant(\User_Adapter $user)
{
$this->usr_id = $user->get_id();
return $this;
}
}