/** * Check to be sure items and minimumItems are set then run the parent method */ public function preRender() { if (!$this->totalItems or !$this->requiredItems) { throw new \Foundation\Exception('RankingListElement requires total items and required items to be set before it is rendered.'); } parent::preRender(); }