aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-10-05 15:08:33 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-10-05 15:08:33 +0200
commit464dca13dd2f64d68cf1a83d28f4b12ee1ea4b9e (patch)
tree8d46389a72576248bb8e50737965491bf3c77524
parentc385ffb1382d919c63ab97acd6f62058179c5f2a (diff)
parentec609946463ea2266681b7b81764ba72e8cb24a5 (diff)
downloadUstring-464dca13dd2f64d68cf1a83d28f4b12ee1ea4b9e.zip
Ustring-464dca13dd2f64d68cf1a83d28f4b12ee1ea4b9e.tar.gz
Ustring-464dca13dd2f64d68cf1a83d28f4b12ee1ea4b9e.tar.bz2
Merge branch 'pr/6' into incoming
-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.
*