<?php

declare(strict_types=1);

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

namespace Chamilo\CourseBundle\Entity;

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

/**
 * CWikiConf.
 */
#[ORM\Table(name: 'c_wiki_conf')]
#[ORM\Index(name: 'course', columns: ['c_id'])]
#[ORM\Index(name: 'page_id', columns: ['page_id'])]
#[ORM\Entity]
class CWikiConf
{
    #[ORM\Column(name: 'iid', type: 'integer')]
    #[ORM\Id]
    #[ORM\GeneratedValue]
    protected ?int $iid = null;

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

    #[ORM\Column(name: 'page_id', type: 'integer')]
    protected int $pageId;

    #[ORM\Column(name: 'task', type: 'text', nullable: false)]
    protected string $task;

    #[ORM\Column(name: 'feedback1', type: 'text', nullable: false)]
    protected string $feedback1;

    #[ORM\Column(name: 'feedback2', type: 'text', nullable: false)]
    protected string $feedback2;

    #[ORM\Column(name: 'feedback3', type: 'text', nullable: false)]
    protected string $feedback3;

    #[ORM\Column(name: 'fprogress1', type: 'string', length: 3, nullable: false)]
    protected string $fprogress1;

    #[ORM\Column(name: 'fprogress2', type: 'string', length: 3, nullable: false)]
    protected string $fprogress2;

    #[ORM\Column(name: 'fprogress3', type: 'string', length: 3, nullable: false)]
    protected string $fprogress3;

    #[ORM\Column(name: 'max_size', type: 'integer', nullable: true)]
    protected ?int $maxSize = null;

    #[ORM\Column(name: 'max_text', type: 'integer', nullable: true)]
    protected ?int $maxText = null;

    #[ORM\Column(name: 'max_version', type: 'integer', nullable: true)]
    protected ?int $maxVersion = null;

    #[ORM\Column(name: 'startdate_assig', type: 'datetime', nullable: true)]
    protected ?DateTime $startdateAssig = null;

    #[ORM\Column(name: 'enddate_assig', type: 'datetime', nullable: true)]
    protected ?DateTime $enddateAssig = null;

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

    /**
     * Get task.
     *
     * @return string
     */
    public function getTask()
    {
        return $this->task;
    }

    /**
     * Set task.
     *
     * @return CWikiConf
     */
    public function setTask(string $task)
    {
        $this->task = $task;

        return $this;
    }

    /**
     * Get feedback1.
     *
     * @return string
     */
    public function getFeedback1()
    {
        return $this->feedback1;
    }

    /**
     * Set feedback1.
     *
     * @return CWikiConf
     */
    public function setFeedback1(string $feedback1)
    {
        $this->feedback1 = $feedback1;

        return $this;
    }

    /**
     * Get feedback2.
     *
     * @return string
     */
    public function getFeedback2()
    {
        return $this->feedback2;
    }

    /**
     * Set feedback2.
     *
     * @return CWikiConf
     */
    public function setFeedback2(string $feedback2)
    {
        $this->feedback2 = $feedback2;

        return $this;
    }

    /**
     * Get feedback3.
     *
     * @return string
     */
    public function getFeedback3()
    {
        return $this->feedback3;
    }

    /**
     * Set feedback3.
     *
     * @return CWikiConf
     */
    public function setFeedback3(string $feedback3)
    {
        $this->feedback3 = $feedback3;

        return $this;
    }

    /**
     * Get fprogress1.
     *
     * @return string
     */
    public function getFprogress1()
    {
        return $this->fprogress1;
    }

    /**
     * Set fprogress1.
     *
     * @return CWikiConf
     */
    public function setFprogress1(string $fprogress1)
    {
        $this->fprogress1 = $fprogress1;

        return $this;
    }

    /**
     * Get fprogress2.
     *
     * @return string
     */
    public function getFprogress2()
    {
        return $this->fprogress2;
    }

    /**
     * Set fprogress2.
     *
     * @return CWikiConf
     */
    public function setFprogress2(string $fprogress2)
    {
        $this->fprogress2 = $fprogress2;

        return $this;
    }

    /**
     * Get fprogress3.
     *
     * @return string
     */
    public function getFprogress3()
    {
        return $this->fprogress3;
    }

    /**
     * Set fprogress3.
     *
     * @return CWikiConf
     */
    public function setFprogress3(string $fprogress3)
    {
        $this->fprogress3 = $fprogress3;

        return $this;
    }

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

    /**
     * Set maxSize.
     *
     * @return CWikiConf
     */
    public function setMaxSize(int $maxSize)
    {
        $this->maxSize = $maxSize;

        return $this;
    }

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

    /**
     * Set maxText.
     *
     * @return CWikiConf
     */
    public function setMaxText(int $maxText)
    {
        $this->maxText = $maxText;

        return $this;
    }

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

    /**
     * Set maxVersion.
     *
     * @return CWikiConf
     */
    public function setMaxVersion(int $maxVersion)
    {
        $this->maxVersion = $maxVersion;

        return $this;
    }

    /**
     * Get startdateAssig.
     */
    public function getStartdateAssig(): ?DateTime
    {
        return $this->startdateAssig;
    }

    public function setStartdateAssig(?DateTime $startdateAssig): self
    {
        $this->startdateAssig = $startdateAssig;

        return $this;
    }

    public function getEnddateAssig(): ?DateTime
    {
        return $this->enddateAssig;
    }

    public function setEnddateAssig(?DateTime $enddateAssig): self
    {
        $this->enddateAssig = $enddateAssig;

        return $this;
    }

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

    /**
     * Set delayedsubmit.
     *
     * @return CWikiConf
     */
    public function setDelayedsubmit(int $delayedsubmit)
    {
        $this->delayedsubmit = $delayedsubmit;

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Set pageId.
     *
     * @return CWikiConf
     */
    public function setPageId(int $pageId)
    {
        $this->pageId = $pageId;

        return $this;
    }
}
