Added a copy method to Medium object

This commit is contained in:
Andy Miller
2017-10-30 15:36:52 -06:00
parent e9e4106d22
commit f17954a5db
2 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
# v1.3.9
## xx/xx/2017
1. [](#improved)
* Added `Medium::copy()` method to create a copy of a medium object
# v1.3.8
## 10/26/2017

View File

@@ -72,6 +72,16 @@ class Medium extends Data implements RenderableInterface
$this->reset();
}
/**
* Create a copy of this media object
*
* @return Medium
*/
public function copy()
{
return clone($this);
}
/**
* Return just metadata from the Medium object
*