%PDF- %PDF-
| Direktori : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/CoreBundle/Entity/ |
| Current File : //home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/CoreBundle/Entity/GradebookLink.php |
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* GradebookLink.
*
* @ORM\Table(name="gradebook_link")
* @ORM\Entity
*/
class GradebookLink
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
protected $id;
/**
* @var int
*
* @ORM\Column(name="type", type="integer", nullable=false)
*/
protected $type;
/**
* @var int
*
* @ORM\Column(name="ref_id", type="integer", nullable=false)
*/
protected $refId;
/**
* @var int
*
* @ORM\Column(name="user_id", type="integer", nullable=false)
*/
protected $userId;
/**
* @var string
*
* @ORM\Column(name="course_code", type="string", length=40, nullable=false)
*/
protected $courseCode;
/**
* @var int
*
* @ORM\Column(name="category_id", type="integer", nullable=false)
*/
protected $categoryId;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime", nullable=false)
*/
protected $createdAt;
/**
* @var float
*
* @ORM\Column(name="weight", type="float", precision=10, scale=0, nullable=false)
*/
protected $weight;
/**
* @var int
*
* @ORM\Column(name="visible", type="integer", nullable=false)
*/
protected $visible;
/**
* @var int
*
* @ORM\Column(name="locked", type="integer", nullable=false)
*/
protected $locked;
/**
* @var float
*
* ORM\Column(name="best_score", type="float", precision=6, scale=2, nullable=true)
*/
protected $bestScore;
/**
* @var float
*
* ORM\Column(name="average_score", type="float", precision=6, scale=2, nullable=true)
*/
protected $averageScore;
/**
* @var float
*
* ORM\Column(name="score_weight", type="float", precision=6, scale=2, nullable=true)
*/
protected $scoreWeight;
/**
* @var array
*
* ORM\Column(name="user_score_list", type="array", nullable=true)
*/
protected $userScoreList;
/**
* Set type.
*
* @param int $type
*
* @return GradebookLink
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type.
*
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* Set refId.
*
* @param int $refId
*
* @return GradebookLink
*/
public function setRefId($refId)
{
$this->refId = $refId;
return $this;
}
/**
* Get refId.
*
* @return int
*/
public function getRefId()
{
return $this->refId;
}
/**
* Set userId.
*
* @param int $userId
*
* @return GradebookLink
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId.
*
* @return int
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set courseCode.
*
* @param string $courseCode
*
* @return GradebookLink
*/
public function setCourseCode($courseCode)
{
$this->courseCode = $courseCode;
return $this;
}
/**
* Get courseCode.
*
* @return string
*/
public function getCourseCode()
{
return $this->courseCode;
}
/**
* Set categoryId.
*
* @param int $categoryId
*
* @return GradebookLink
*/
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
return $this;
}
/**
* Get categoryId.
*
* @return int
*/
public function getCategoryId()
{
return $this->categoryId;
}
/**
* Set createdAt.
*
* @param \DateTime $createdAt
*
* @return GradebookLink
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt.
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set weight.
*
* @param float $weight
*
* @return GradebookLink
*/
public function setWeight($weight)
{
$this->weight = $weight;
return $this;
}
/**
* Get weight.
*
* @return float
*/
public function getWeight()
{
return $this->weight;
}
/**
* Set visible.
*
* @param int $visible
*
* @return GradebookLink
*/
public function setVisible($visible)
{
$this->visible = $visible;
return $this;
}
/**
* Get visible.
*
* @return int
*/
public function getVisible()
{
return $this->visible;
}
/**
* Set locked.
*
* @param int $locked
*
* @return GradebookLink
*/
public function setLocked($locked)
{
$this->locked = $locked;
return $this;
}
/**
* Get locked.
*
* @return int
*/
public function getLocked()
{
return $this->locked;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return float
*/
public function getBestScore()
{
return $this->bestScore;
}
/**
* @param float $bestScore
*
* @return GradebookLink
*/
public function setBestScore($bestScore)
{
$this->bestScore = $bestScore;
return $this;
}
/**
* @return float
*/
public function getAverageScore()
{
return $this->averageScore;
}
/**
* @param float $averageScore
*
* @return GradebookLink
*/
public function setAverageScore($averageScore)
{
$this->averageScore = $averageScore;
return $this;
}
/**
* @return array
*/
public function getUserScoreList()
{
if (empty($this->userScoreList)) {
return [];
}
return $this->userScoreList;
}
/**
* @param array $userScoreList
*
* @return GradebookLink
*/
public function setUserScoreList($userScoreList)
{
$this->userScoreList = $userScoreList;
return $this;
}
/**
* @return float
*/
public function getScoreWeight()
{
return $this->scoreWeight;
}
/**
* @param float $scoreWeight
*
* @return GradebookLink
*/
public function setScoreWeight($scoreWeight)
{
$this->scoreWeight = $scoreWeight;
return $this;
}
}