src/Common/Address.php
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);
    }
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);
    }
Set the address state
@param State|array $state
@return $this
@throws InvalidArgumentException