reels[] = $reels; } /** * @return array */ public function getReels(): array { return $this->reels; } /** * @return string */ public function getMaxId(): ?string { return $this->maxId; } /** * @param string $maxId */ public function setMaxId(string $maxId): void { $this->maxId = $maxId; } public function hasMaxId(): bool { return $this->getMaxId() !== null; } /** * @return array */ public function toArray(): array { return [ "reels" => array_map(function ($reels) { return $reels->toArray(); }, $this->getReels()), "hasMaxId" => $this->hasMaxId(), "maxId" => $this->getMaxId(), ]; } /** * @return array */ public function __serialize(): array { return $this->toArray(); } }