add copy
This commit is contained in:
1 parent
936de012ed
commit
49c2572185
1 file changed
+10
@@ -329,6 +329,16 @@ class Verta extends DateTime {
|
||||
return new static($datetime, $timezone);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a copy of the instance.
|
||||
*
|
||||
* @return static
|
||||
*/
|
||||
public function copy()
|
||||
{
|
||||
return clone $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a DateTime instance from Verta
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user