/**
  * @param StateInterface $state
  */
 protected function updateObject(StateInterface $state)
 {
     $this->object->setState($state->getName());
 }
 /**
  * @inheritdoc
  */
 public function addState(StateInterface $state)
 {
     $this->states[$state->getName()] = $state;
     return $this;
 }