public function addParsedObject($object) { if ($object instanceof TWizardStep) { $this->getWizardSteps()->add($object); } }