Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from 21TORR/wither-image-value
Browse files Browse the repository at this point in the history
Add wither to `ImageValue` to set a new URL.
  • Loading branch information
apfelbox authored Feb 28, 2023
2 parents 851af7f + f9b6691 commit ebf3aa7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
6.3.5
=====

* (improvement) Add wither to `ImageValue` to set a new URL.


6.3.4
=====

Expand Down
14 changes: 14 additions & 0 deletions src/Data/Value/ImageValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}

0 comments on commit ebf3aa7

Please sign in to comment.