public function init() { parent::init(); if (is_null($this->index)) { throw new InvalidParamException('Property "index" must be set'); } }