We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dfc5f5 commit 0be11d0Copy full SHA for 0be11d0
src/PhpPresentation/Shape/RichText/Paragraph.php
@@ -107,7 +107,26 @@ public function __construct()
107
}
108
109
/**
110
- * Get alignment.
+ * Magic Method : clone
111
+ */
112
+ public function __clone()
113
+ {
114
+ // Clone each text
115
+ if (isset($this->richTextElements)) {
116
+ foreach ($this->richTextElements as &$txtElt) {
117
+ $txtElt = clone $txtElt;
118
+ }}
119
+ // Clone each effect
120
+ if (isset($this->effectCollection)) {
121
+ foreach ($this->effectCollection as &$effect) {
122
+ $effect = clone $effect;
123
124
+ }
125
+
126
+ /**
127
+ * Get alignment
128
+ *
129
+ * @return \PhpOffice\PhpPresentation\Style\Alignment
130
*/
131
public function getAlignment(): Alignment
132
{
0 commit comments