From 49c257218530e854c71f21e3c225d7ef86e13359 Mon Sep 17 00:00:00 2001 From: Nasser Date: Sat, 30 Jun 2018 14:55:15 +0430 Subject: [PATCH] add copy --- src/Verta.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Verta.php b/src/Verta.php index c777965..57022fb 100755 --- a/src/Verta.php +++ b/src/Verta.php @@ -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 *