aboutsummaryrefslogtreecommitdiffstats
path: root/String.php
diff options
context:
space:
mode:
Diffstat (limited to 'String.php')
-rw-r--r--String.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/String.php b/String.php
index d715e92..31ecc6d 100644
--- a/String.php
+++ b/String.php
@@ -882,6 +882,16 @@ class String implements \ArrayAccess, \Countable, \IteratorAggregate {
return $this;
}
+
+ /**
+ * Copy current object string
+ * @return String
+ */
+ public function copy()
+ {
+ return clone $this ;
+ }
+
/**
* Transform the object as a string.
*