public function lastPage() { if ($this->simple) { throw new \DomainException('not support last'); } return $this->lastPage; }