We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 54bddf2 + 0860299 commit 20c9770Copy full SHA for 20c9770
2 files changed
src/Entity/Item.php
@@ -319,4 +319,15 @@ public function equals( $target ) {
319
&& $this->statements->equals( $target->statements );
320
}
321
322
+ /**
323
+ * @see EntityDocument::copy
324
+ *
325
+ * @since 0.1
326
327
+ * @return self
328
+ */
329
+ public function copy() {
330
+ return unserialize( serialize( $this ) );
331
+ }
332
+
333
src/Entity/Property.php
@@ -251,4 +251,15 @@ public function setStatements( StatementList $statements ) {
251
$this->statements = $statements;
252
253
254
255
256
257
258
259
260
261
262
263
264
265
0 commit comments