public function getAllPersons($from = null, $limit = null) { $app = new \geneweb\api\object\AllPersonsParams(); if ($from != null) { $app->setFrom((int) $from); } if ($limit != null) { $app->setLimit((int) $limit); } return $this->request("ALL_PERSONS", $app, $this->getClassname('ListPersons')); }