posts = new ArrayCollection(); $this->qualifications = new ArrayCollection(); $this->threadPeerQualify = false; $this->threadReplies = 0; $this->threadViews = 0; $this->locked = 0; $this->threadQualifyMax = 0; $this->threadWeight = 0; $this->threadSticky = false; } public function __toString(): string { return (string) $this->getThreadTitle(); } public function isThreadPeerQualify(): bool { return $this->threadPeerQualify; } public function setThreadPeerQualify(bool $threadPeerQualify): self { $this->threadPeerQualify = $threadPeerQualify; return $this; } public function setThreadTitle(string $threadTitle): self { $this->threadTitle = $threadTitle; return $this; } /** * Get threadTitle. * * @return string */ public function getThreadTitle() { return $this->threadTitle; } public function setForum(CForumForum $forum = null): self { $this->forum = $forum; return $this; } /** * Get forumId. * * @return null|CForumForum */ public function getForum() { return $this->forum; } public function setThreadReplies(int $threadReplies): self { $this->threadReplies = $threadReplies; return $this; } /** * Get threadReplies. * * @return int */ public function getThreadReplies() { return $this->threadReplies; } public function setThreadViews(int $threadViews): self { $this->threadViews = $threadViews; return $this; } /** * Get threadViews. * * @return int */ public function getThreadViews() { return $this->threadViews; } public function setThreadDate(DateTime $threadDate): self { $this->threadDate = $threadDate; return $this; } /** * Get threadDate. * * @return DateTime */ public function getThreadDate() { return $this->threadDate; } public function setThreadSticky(bool $threadSticky): self { $this->threadSticky = $threadSticky; return $this; } /** * Get threadSticky. * * @return bool */ public function getThreadSticky() { return $this->threadSticky; } public function setLocked(int $locked): self { $this->locked = $locked; return $this; } /** * Get locked. * * @return int */ public function getLocked() { return $this->locked; } public function setThreadTitleQualify(string $threadTitleQualify): self { $this->threadTitleQualify = $threadTitleQualify; return $this; } /** * Get threadTitleQualify. * * @return string */ public function getThreadTitleQualify() { return $this->threadTitleQualify; } public function setThreadQualifyMax(float $threadQualifyMax): self { $this->threadQualifyMax = $threadQualifyMax; return $this; } /** * Get threadQualifyMax. * * @return float */ public function getThreadQualifyMax() { return $this->threadQualifyMax; } public function setThreadCloseDate(DateTime $threadCloseDate): self { $this->threadCloseDate = $threadCloseDate; return $this; } /** * Get threadCloseDate. * * @return DateTime */ public function getThreadCloseDate() { return $this->threadCloseDate; } public function setThreadWeight(float $threadWeight): self { $this->threadWeight = $threadWeight; return $this; } /** * Get threadWeight. * * @return float */ public function getThreadWeight() { return $this->threadWeight; } /** * Get iid. * * @return int */ public function getIid() { return $this->iid; } public function getUser(): User { return $this->user; } public function setUser(User $user): self { $this->user = $user; return $this; } /** * @return Collection|CForumPost[] */ public function getPosts() { return $this->posts; } public function getThreadLastPost(): ?CForumPost { return $this->threadLastPost; } public function setThreadLastPost(CForumPost $threadLastPost): self { $this->threadLastPost = $threadLastPost; return $this; } /** * @return CForumThreadQualify[]|Collection */ public function getQualifications() { return $this->qualifications; } /** * @param CForumThreadQualify[]|Collection $qualifications */ public function setQualifications(Collection $qualifications): self { $this->qualifications = $qualifications; return $this; } public function getItem(): ?CLpItem { return $this->item; } public function setItem(?CLpItem $item): self { $this->item = $item; return $this; } public function getResourceIdentifier(): int { return $this->getIid(); } public function getResourceName(): string { return $this->getThreadTitle(); } public function setResourceName(string $name): self { return $this->setThreadTitle($name); } }