code: public function setState($state)
      {
          if(!$state) {
              return $this;
          }
          if (!($state instanceof State)) {
              $state = new State($state);
          }
          if ($state->isEmpty()) {
              $this->invalidArguments('10002');
          }
          return $this->setParameter('state', $state);
      }
docs: Set the address state
  @param State|array $state
  @return $this
  @throws InvalidArgumentException