/** * @inheritdoc */ protected function setState(IStateful $state, array $options = []) { $init = null; if ($state instanceof StateTemplate) { $init = $state->init($options); } $this->base->setState($state); return $init; }