You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
283 lines
4.9 KiB
283 lines
4.9 KiB
<?php
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
use Chamilo\CoreBundle\Traits\UserTrait;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Class Sequence.
|
|
*
|
|
* @ORM\Table(name="sequence_value")
|
|
* @ORM\Entity
|
|
*/
|
|
class SequenceValue
|
|
{
|
|
use UserTrait;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue()
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @var User
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="sequenceValues")
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
|
|
*/
|
|
protected $user;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="SequenceRowEntity")
|
|
* @ORM\JoinColumn(name="sequence_row_entity_id", referencedColumnName="id")
|
|
*/
|
|
protected $entity;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="advance", type="float")
|
|
*/
|
|
protected $advance;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="complete_items", type="integer")
|
|
*/
|
|
protected $completeItems;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="total_items", type="integer")
|
|
*/
|
|
protected $totalItems;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="success", type="boolean")
|
|
*/
|
|
protected $success;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="success_date", type="datetime", nullable=true)
|
|
*/
|
|
protected $successDate;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="available", type="boolean")
|
|
*/
|
|
protected $available;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="available_start_date", type="datetime", nullable=true)
|
|
*/
|
|
protected $availableStartDate;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="available_end_date", type="datetime", nullable=true)
|
|
*/
|
|
protected $availableEndDate;
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getEntity()
|
|
{
|
|
return $this->entity;
|
|
}
|
|
|
|
/**
|
|
* @return SequenceValue
|
|
*/
|
|
public function setEntity($entity)
|
|
{
|
|
$this->entity = $entity;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getAdvance()
|
|
{
|
|
return $this->advance;
|
|
}
|
|
|
|
/**
|
|
* @param int $advance
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setAdvance($advance)
|
|
{
|
|
$this->advance = $advance;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCompleteItems()
|
|
{
|
|
return $this->completeItems;
|
|
}
|
|
|
|
/**
|
|
* @param int $completeItems
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setCompleteItems($completeItems)
|
|
{
|
|
$this->completeItems = $completeItems;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getTotalItems()
|
|
{
|
|
return $this->totalItems;
|
|
}
|
|
|
|
/**
|
|
* @param int $totalItems
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setTotalItems($totalItems)
|
|
{
|
|
$this->totalItems = $totalItems;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getSuccess()
|
|
{
|
|
return $this->success;
|
|
}
|
|
|
|
/**
|
|
* @param int $success
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setSuccess($success)
|
|
{
|
|
$this->success = $success;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime
|
|
*/
|
|
public function getSuccessDate()
|
|
{
|
|
return $this->successDate;
|
|
}
|
|
|
|
/**
|
|
* @param \DateTime $successDate
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setSuccessDate($successDate)
|
|
{
|
|
$this->successDate = $successDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getAvailable()
|
|
{
|
|
return $this->available;
|
|
}
|
|
|
|
/**
|
|
* @param int $available
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setAvailable($available)
|
|
{
|
|
$this->available = $available;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime
|
|
*/
|
|
public function getAvailableStartDate()
|
|
{
|
|
return $this->availableStartDate;
|
|
}
|
|
|
|
/**
|
|
* @param \DateTime $availableStartDate
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setAvailableStartDate($availableStartDate)
|
|
{
|
|
$this->availableStartDate = $availableStartDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime
|
|
*/
|
|
public function getAvailableEndDate()
|
|
{
|
|
return $this->availableEndDate;
|
|
}
|
|
|
|
/**
|
|
* @param \DateTime $availableEndDate
|
|
*
|
|
* @return SequenceValue
|
|
*/
|
|
public function setAvailableEndDate($availableEndDate)
|
|
{
|
|
$this->availableEndDate = $availableEndDate;
|
|
|
|
return $this;
|
|
}
|
|
}
|
|
|