/** * {@inheritdoc} */ public function remove(EntityInterface $entity) { assert($entity instanceof StateInterface); /* @var $entity StateInterface */ if (array_key_exists($entity->getStateId(), $this->states)) { } }