for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Entity;
use Chamilo\CoreBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
/**
* CAttendanceResult.
*
* @ORM\Table(
* name="c_attendance_result",
* indexes={
* }
* )
* @ORM\Entity
*/
class CAttendanceResult
{
* @var int
* @ORM\Column(name="iid", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
protected $iid;
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
protected User $user;
* @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CAttendance")
* @ORM\JoinColumn(name="attendance_id", referencedColumnName="iid")
protected CAttendance $attendance;
* @ORM\Column(name="score", type="integer", nullable=false)
protected $score;
public function getUser(): User
return $this->user;
}
* @return CAttendanceResult
public function setUser(User $user): self
$this->user = $user;
return $this;
public function getAttendance(): CAttendance
return $this->attendance;
public function setAttendance(CAttendance $attendance): self
$this->attendance = $attendance;
* Set score.
* @param int $score
public function setScore($score): self
$this->score = $score;
* Get score.
* @return int
public function getScore()
return $this->score;