setStreet($address->getStreet()); $this->setCity($address->getCity()); $this->setCountry($address->getCountry()); $this->setState($address->getState()); $this->setPostalCode($address->getPostalCode()); return $this; } public function setStreet(?string $street): self { $this->street = $street; return $this; } public function setCity(?string $city): self { $this->city = $city; return $this; } public function setCountry(?string $country): self { $this->country = $country; return $this; } public function setState(?string $state): self { $this->state = $state; return $this; } public function setPostalCode(?string $postalCode): self { $this->postalCode = $postalCode; return $this; } public function build(): Address { return Address::fromRaw([ 'street' => $this->street, 'city' => $this->city, 'country' => $this->country, 'state' => $this->state, 'postalCode' => $this->postalCode, ]); } }