*/ public function toObject() { $return = parent::toObject(); if ($this->next !== '') { $return['next'] = $this->next; } if ($this->prev !== '') { $return['prev'] = $this->prev; } if ($this->partOf !== '') { $return['partOf'] = $this->partOf; } return $return; } /** * create object from json * @param array $json input json * @return bool true on success */ public function fromJson($json) : bool { return parent::fromJson($json); } public function setNext(string $url) : void { $this->next = $url; } public function setPrev(string $url) : void { $this->prev = $url; } public function setPartOf(string $url) : void { $this->partOf = $url; } }