aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlug <flugv1@gmail.com>2014-07-29 23:09:47 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-10-05 15:08:10 +0200
commitec609946463ea2266681b7b81764ba72e8cb24a5 (patch)
tree1c51390fbd8f194fd4ed79475bda3e35fe8d0200
parent747881d08c7bb4a6d6bc22bbe83d1f8613f721e9 (diff)
downloadUstring-ec609946463ea2266681b7b81764ba72e8cb24a5.zip
Ustring-ec609946463ea2266681b7b81764ba72e8cb24a5.tar.gz
Ustring-ec609946463ea2266681b7b81764ba72e8cb24a5.tar.bz2
implement method copy
-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.
*