comment = ''; $this->filetype = 'folder'; $this->readonly = false; $this->template = false; } public function __toString(): string { return $this->getTitle(); } public function isTemplate(): bool { return $this->template; } public function setTemplate(bool $template): self { $this->template = $template; return $this; } /** * Set comment. * * @param string $comment */ public function setComment($comment): self { $this->comment = $comment; return $this; } /** * Get comment. * * @return string */ public function getComment() { return $this->comment; } public function setTitle(string $title): self { $this->title = $title; return $this; } /** * Document title. */ public function getTitle(): string { return $this->title; } public function setFiletype(string $filetype): self { $this->filetype = $filetype; return $this; } /** * Get filetype. * * @return string */ public function getFiletype() { return $this->filetype; } /** * Set readonly. * * @param bool $readonly * * @return CDocument */ public function setReadonly($readonly) { $this->readonly = $readonly; return $this; } /** * Get readonly. * * @return bool */ public function getReadonly() { return $this->readonly; } /** * @return int */ public function getIid() { return $this->iid; } public function getResourceIdentifier(): int { return $this->getIid(); } public function getResourceName(): string { return $this->getTitle(); } public function setResourceName(string $name): self { return $this->setTitle($name); } }