id; } /** * Get app * * @return WikiApp * * @since 1.0.0 */ public function getApp() : WikiApp { return $this->app ?? new NullWikiApp(); } /** * Set app * * @param null|WikiApp $app App * * @return void * * @since 1.0.0 */ public function setApp(?WikiApp $app) : void { $this->app = $app; } /** * Get language * * @return string * * @since 1.0.0 */ public function getLanguage() : string { return $this->language; } /** * Set language * * @param string $language Language * * @return void * * @since 1.0.0 */ public function setLanguage(string $language) : void { $this->language = $language; } /** * Get name * * @return string * * @since 1.0.0 */ public function getName() : string { return $this->name; } /** * Set name * * @param string $name Name * * @return void * * @since 1.0.0 */ public function setName(string $name) : void { $this->name = $name; } /** * Get content * * @return string * * @since 1.0.0 */ public function getDoc() : string { return $this->doc; } /** * Set content * * @param string $doc Document content * * @return void * * @since 1.0.0 */ public function setDoc(string $doc) : void { $this->doc = $doc; } /** * Get content * * @return string * * @since 1.0.0 */ public function getDocRaw() : string { return $this->docRaw; } /** * Set content * * @param string $doc Document content * * @return void * * @since 1.0.0 */ public function setDocRaw(string $doc) : void { $this->docRaw = $doc; } /** * Get status * * @return int * * @since 1.0.0 */ public function getStatus() : int { return $this->status; } /** * Set status * * @param int $status Status * * @return void * * @since 1.0.0 */ public function setStatus(int $status) : void { $this->status = $status; } /** * Get category * * @return WikiCategory * * @since 1.0.0 */ public function getCategory() : WikiCategory { return $this->category ?? new NullWikiCategory(); } /** * Set cateogry * * @param null|WikiCategory $category Category * * @return void * * @since 1.0.0 */ public function setCategory(?WikiCategory $category) : void { $this->category = $category; } /** * Get tags * * @return array * * @since 1.0.0 */ public function getTags() : array { return $this->tags; } /** * Add tag * * @param Tag $tag Tag * * @return void * * @since 1.0.0 */ public function addTag(Tag $tag) : void { $this->tags[] = $tag; } /** * {@inheritdoc} */ public function jsonSerialize() : array { return []; } }