country = $array['country']; $self->address1 = $array['address1']; $self->address2 = $array['address2']; $self->city = $array['city']; $self->state = $array['state']; $self->zip = $array['zip']; return $self; } /** * @since 3.20.0 */ public function toArray(): array { return [ 'country' => $this->country, 'address1' => $this->address1, 'address2' => $this->address2, 'city' => $this->city, 'state' => $this->state, 'zip' => $this->zip, ]; } /** * @since 3.20.0 */ #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); } }