chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Entity/TrackELinks.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Entity;

use DateTime;
use Doctrine\ORM\Mapping as ORM;

/**
 * TrackELinks.
 */
#[ORM\Table(name: 'track_e_links')]
#[ORM\Index(name: 'idx_tel_c_id', columns: ['c_id'])]
#[ORM\Index(name: 'idx_tel_user_id', columns: ['links_user_id'])]
#[ORM\Index(name: 'session_id', columns: ['session_id'])]
#[ORM\Entity]
class TrackELinks
{
    #[ORM\Column(name: 'links_user_id', type: 'integer', nullable: true)]
    protected ?int $linksUserId = null;

    #[ORM\Column(name: 'links_date', type: 'datetime', nullable: false)]
    protected DateTime $linksDate;

    #[ORM\Column(name: 'c_id', type: 'integer', nullable: false)]
    protected int $cId;

    #[ORM\Column(name: 'links_link_id', type: 'integer', nullable: false)]
    protected int $linksLinkId;

    #[ORM\Column(name: 'session_id', type: 'integer', nullable: false)]
    protected int $sessionId;

    #[ORM\Column(name: 'links_id', type: 'integer')]
    #[ORM\Id]
    #[ORM\GeneratedValue(strategy: 'IDENTITY')]
    protected int $linksId;

    /**
     * Set linksUserId.
     *
     * @return TrackELinks
     */
    public function setLinksUserId(int $linksUserId)
    {
        $this->linksUserId = $linksUserId;

        return $this;
    }

    /**
     * Get linksUserId.
     *
     * @return int
     */
    public function getLinksUserId()
    {
        return $this->linksUserId;
    }

    /**
     * Set linksDate.
     *
     * @return TrackELinks
     */
    public function setLinksDate(DateTime $linksDate)
    {
        $this->linksDate = $linksDate;

        return $this;
    }

    /**
     * Get linksDate.
     *
     * @return DateTime
     */
    public function getLinksDate()
    {
        return $this->linksDate;
    }

    /**
     * Set cId.
     *
     * @return TrackELinks
     */
    public function setCId(int $cId)
    {
        $this->cId = $cId;

        return $this;
    }

    /**
     * Get cId.
     *
     * @return int
     */
    public function getCId()
    {
        return $this->cId;
    }

    /**
     * Set linksLinkId.
     *
     * @return TrackELinks
     */
    public function setLinksLinkId(int $linksLinkId)
    {
        $this->linksLinkId = $linksLinkId;

        return $this;
    }

    /**
     * Get linksLinkId.
     *
     * @return int
     */
    public function getLinksLinkId()
    {
        return $this->linksLinkId;
    }

    /**
     * Set sessionId.
     *
     * @return TrackELinks
     */
    public function setSessionId(int $sessionId)
    {
        $this->sessionId = $sessionId;

        return $this;
    }

    /**
     * Get sessionId.
     *
     * @return int
     */
    public function getSessionId()
    {
        return $this->sessionId;
    }

    /**
     * Get linksId.
     *
     * @return int
     */
    public function getLinksId()
    {
        return $this->linksId;
    }
}