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.
177 lines
3.0 KiB
177 lines
3.0 KiB
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* GradebookScoreLog.
|
|
*
|
|
* @ORM\Table(
|
|
* name="gradebook_score_log", indexes={
|
|
* @ORM\Index(name="idx_gradebook_score_log_user", columns={"user_id"}),
|
|
* @ORM\Index(name="idx_gradebook_score_log_user_category", columns={"user_id", "category_id"})
|
|
* }
|
|
* )
|
|
* @ORM\Entity
|
|
*/
|
|
class GradebookScoreLog
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="category_id", type="integer", nullable=false)
|
|
*/
|
|
protected $categoryId;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="user_id", type="integer", nullable=false)
|
|
*/
|
|
protected $userId;
|
|
|
|
/**
|
|
* @var float
|
|
*
|
|
* @ORM\Column(name="score", type="float", precision=10, scale=0, nullable=false)
|
|
*/
|
|
protected $score;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="registered_at", type="datetime", nullable=false)
|
|
*/
|
|
protected $registeredAt;
|
|
|
|
/**
|
|
* Get the category id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getCategoryId()
|
|
{
|
|
return $this->categoryId;
|
|
}
|
|
|
|
/**
|
|
* Get the user id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getUserId()
|
|
{
|
|
return $this->userId;
|
|
}
|
|
|
|
/**
|
|
* Get the achieved score.
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getScore()
|
|
{
|
|
return $this->score;
|
|
}
|
|
|
|
/**
|
|
* Get the datetime of register.
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getRegisteredAt()
|
|
{
|
|
return $this->registeredAt;
|
|
}
|
|
|
|
/**
|
|
* Get the id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set the category id.
|
|
*
|
|
* @param int $categoryId
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setCategoryId($categoryId)
|
|
{
|
|
$this->categoryId = $categoryId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set the user id.
|
|
*
|
|
* @param int $userId
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setUserId($userId)
|
|
{
|
|
$this->userId = $userId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set the achieved score.
|
|
*
|
|
* @param float $score
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setScore($score)
|
|
{
|
|
$this->score = $score;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set the datetime of register.
|
|
*
|
|
* @param \DateTime $registeredAt
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setRegisteredAt(\DateTime $registeredAt)
|
|
{
|
|
$this->registeredAt = $registeredAt;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set the id.
|
|
*
|
|
* @param int $id
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
}
|
|
|