public function setMaxItems($maxItems) { $this->maxItems = $this->getAsIntegerCast($maxItems); return $this; }