children = new ArrayCollection(); $this->path = ''; $this->ref = ''; $this->lvl = 0; $this->launchData = ''; $this->description = ''; $this->displayOrder = 0; $this->minScore = 0; $this->maxScore = 100.0; } public function __toString(): string { return $this->getIid().' '.$this->getTitle(); } public function getIid(): ?int { return $this->iid; } public function setLp(CLp $lp): self { $this->lp = $lp; return $this; } public function getLp(): CLp { return $this->lp; } public function setItemType(string $itemType): self { $this->itemType = $itemType; return $this; } /** * Get itemType. * * @return string */ public function getItemType() { return $this->itemType; } public function setRef(string $ref): self { $this->ref = $ref; return $this; } /** * Get ref. * * @return string */ public function getRef() { return $this->ref; } public function setTitle(string $title): self { $this->title = $title; return $this; } /** * Get title. * * @return string */ public function getTitle() { return $this->title; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getDescription(): ?string { return $this->description; } public function setPath(string $path): self { $this->path = $path; return $this; } /** * Get path. * * @return string */ public function getPath() { return $this->path; } public function setMinScore(float $minScore): self { $this->minScore = $minScore; return $this; } /** * Get minScore. * * @return float */ public function getMinScore() { return $this->minScore; } public function setMaxScore(float $maxScore): self { $this->maxScore = $maxScore; return $this; } /** * Get maxScore. * * @return float */ public function getMaxScore() { return $this->maxScore; } public function setMasteryScore(float $masteryScore): self { $this->masteryScore = $masteryScore; return $this; } /** * Get masteryScore. * * @return float */ public function getMasteryScore() { return $this->masteryScore; } public function setPreviousItemId(?int $previousItemId): self { $this->previousItemId = $previousItemId; return $this; } /** * Get previousItemId. * * @return int */ public function getPreviousItemId() { return $this->previousItemId; } public function setNextItemId(?int $nextItemId): self { $this->nextItemId = $nextItemId; return $this; } /** * Get nextItemId. * * @return int */ public function getNextItemId() { return $this->nextItemId; } public function setDisplayOrder(int $displayOrder): self { $this->displayOrder = $displayOrder; return $this; } /** * Get displayOrder. * * @return int */ public function getDisplayOrder() { return $this->displayOrder; } public function setPrerequisite(string $prerequisite): self { $this->prerequisite = $prerequisite; return $this; } /** * Get prerequisite. * * @return string */ public function getPrerequisite() { return $this->prerequisite; } public function setParameters(string $parameters): self { $this->parameters = $parameters; return $this; } /** * Get parameters. * * @return string */ public function getParameters() { return $this->parameters; } public function setLaunchData(string $launchData): self { $this->launchData = $launchData; return $this; } /** * Get launchData. * * @return string */ public function getLaunchData() { return $this->launchData; } public function setMaxTimeAllowed(string $maxTimeAllowed): self { $this->maxTimeAllowed = $maxTimeAllowed; return $this; } /** * Get maxTimeAllowed. * * @return string */ public function getMaxTimeAllowed() { return $this->maxTimeAllowed; } public function setTerms(string $terms): self { $this->terms = $terms; return $this; } /** * Get terms. * * @return string */ public function getTerms() { return $this->terms; } public function setSearchDid(int $searchDid): self { $this->searchDid = $searchDid; return $this; } /** * Get searchDid. * * @return int */ public function getSearchDid() { return $this->searchDid; } public function setAudio(string $audio): self { $this->audio = $audio; return $this; } /** * Get audio. * * @return string */ public function getAudio() { return $this->audio; } public function setPrerequisiteMinScore(float $prerequisiteMinScore): self { $this->prerequisiteMinScore = $prerequisiteMinScore; return $this; } /** * Get prerequisiteMinScore. * * @return float */ public function getPrerequisiteMinScore() { return $this->prerequisiteMinScore; } public function setPrerequisiteMaxScore(float $prerequisiteMaxScore): self { $this->prerequisiteMaxScore = $prerequisiteMaxScore; return $this; } /** * Get prerequisiteMaxScore. * * @return float */ public function getPrerequisiteMaxScore() { return $this->prerequisiteMaxScore; } public function getParentItemId(): int { if (null === $this->parent) { return 0; } return $this->getParent()->getIid(); } public function getParent(): ?self { return $this->parent; } public function setParent(?self $parent): self { $this->parent = $parent; return $this; } /** * @return CLpItem[]|Collection */ public function getChildren() { return $this->children; } /** * @param CLpItem[]|Collection $children */ public function setChildren(Collection $children): self { $this->children = $children; return $this; } public function getLvl(): ?int { return $this->lvl; } public function setLvl(int $lvl): self { $this->lvl = $lvl; return $this; } }