<?php
namespace App\Entity;
use App\Repository\LMSModuleRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LMSModuleRepository::class)
*/
class LMSModule
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="text")
*/
private $description;
/**
* @ORM\Column(type="integer")
*/
private $duration;
/**
* @ORM\ManyToOne(targetEntity=LMSFormation::class, inversedBy="lMSModules")
*/
private $lmsFormation;
/**
* @ORM\Column(type="boolean")
*/
private $isOnline;
/**
* @ORM\Column(type="boolean")
*/
private $isActive;
/**
* @ORM\ManyToMany(targetEntity=User::class, inversedBy="lMSModules")
*/
private $user;
private $progressionModule;
/**
* @ORM\OneToMany(targetEntity=LMSSequence::class, mappedBy="lmsModule")
*/
private $lMSSequences;
private $status;
private $contentProgression;
private $note;
public function __construct()
{
$this->user = new ArrayCollection();
$this->lMSSequences = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getDuration()
{
return $this->duration;
}
public function setDuration($duration): self
{
$this->duration = $duration;
return $this;
}
public function getLmsFormation(): ?LMSFormation
{
return $this->lmsFormation;
}
public function setLmsFormation(?LMSFormation $lmsFormation): self
{
$this->lmsFormation = $lmsFormation;
return $this;
}
public function getIsOnline(): ?bool
{
return $this->isOnline;
}
public function setIsOnline(bool $isOnline): self
{
$this->isOnline = $isOnline;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
/**
* @return Collection<int, User>
*/
public function getUser(): Collection
{
return $this->user;
}
public function addUser(User $user): self
{
if (!$this->user->contains($user)) {
$this->user[] = $user;
}
return $this;
}
public function removeUser(User $user): self
{
$this->user->removeElement($user);
return $this;
}
/**
* Get the value of progressionModule
*/
public function getProgressionModule()
{
return $this->progressionModule;
}
/**
* Set the value of progressionModule
*
* @return self
*/
public function setProgressionModule($progressionModule)
{
$this->progressionModule = $progressionModule;
return $this;
}
/**
* @return Collection<int, LMSSequence>
*/
public function getLMSSequences(): Collection
{
return $this->lMSSequences;
}
public function addLMSSequence(LMSSequence $lMSSequence): self
{
if (!$this->lMSSequences->contains($lMSSequence)) {
$this->lMSSequences[] = $lMSSequence;
$lMSSequence->setLmsModule($this);
}
return $this;
}
public function removeLMSSequence(LMSSequence $lMSSequence): self
{
if ($this->lMSSequences->removeElement($lMSSequence)) {
// set the owning side to null (unless already changed)
if ($lMSSequence->getLmsModule() === $this) {
$lMSSequence->setLmsModule(null);
}
}
return $this;
}
/**
* Get the value of status
*/
public function getStatus()
{
return $this->status;
}
/**
* Set the value of status
*
* @return self
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get the value of contentProgression
*/
public function getContentProgression()
{
return $this->contentProgression;
}
/**
* Set the value of contentProgression
*
* @return self
*/
public function setContentProgression($contentProgression)
{
$this->contentProgression = $contentProgression;
return $this;
}
/**
* Get the value of note
*/
public function getNote()
{
return $this->note;
}
/**
* Set the value of note
*
* @return self
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
}