id = $id; $this->title = $title; $this->level = $level; $this->noFollow = $noFollow; $this->chapterId= $chapterId; } /** * Get the ID of the section * * @return string */ public function getId() { return $this->id; } /** * Get the title of the section * * @return string */ public function getTitle() { return $this->title; } /** * Get the header level * * @return int */ public function getLevel() { return $this->level; } /** * Whether to instruct search engines to not index the link to the section * * @return bool */ public function isNoFollow() { return $this->noFollow; } /** * The ID of the chapter the section is part of * * @return string */ public function getChapterId() { return $this->chapterId; } /** * Append content * * @param string $content */ public function appendContent($content) { $this->content[] = $content; } /** * Get the content of the section * * @return array */ public function getContent() { return $this->content; } }