diff --git a/CHANGELOG.md b/CHANGELOG.md index 66027cf..1f471f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +6.3.5 +===== + +* (improvement) Add wither to `ImageValue` to set a new URL. + + 6.3.4 ===== diff --git a/src/Data/Value/ImageValue.php b/src/Data/Value/ImageValue.php index 5ae0ec6..8764180 100644 --- a/src/Data/Value/ImageValue.php +++ b/src/Data/Value/ImageValue.php @@ -51,4 +51,18 @@ public function getCopyright () : ?string { return $this->copyright; } + + /** + * + */ + public function withNewUrl (string $url) : self + { + return new self( + $url, + $this->width, + $this->height, + $this->alt, + $this->copyright, + ); + } }