public function setActiveStep($step) { if (($index = $this->getWizardSteps()->indexOf($step)) < 0) { throw new TInvalidOperationException('wizard_step_invalid'); } $this->setActiveStepIndex($index); }