Skip to content

Commit f14053b

Browse files
author
Daniel Kinzler
committed
Merge pull request #547 from wmde/entitydocument-isempty
Add isEmpty to EntityDocument
2 parents f4f60f6 + 207de9b commit f14053b

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

RELEASE-NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Wikibase DataModel release notes
22

3+
## Version 4.3 (dev)
4+
5+
* Added `isEmpty` to `EntityDocument`
6+
37
## Version 4.2 (2015-08-26)
48

59
* Added `EntityRedirect`

src/Entity/Entity.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,6 @@ public function getClaims() {
322322
return array();
323323
}
324324

325-
/**
326-
* Returns if the Entity has no content.
327-
* Having an id set does not count as having content.
328-
*
329-
* @since 0.1
330-
* @deprecated since 1.0
331-
*
332-
* @return bool
333-
*/
334-
public abstract function isEmpty();
335-
336325
/**
337326
* Removes all content from the Entity.
338327
* The id is not part of the content.

src/Entity/EntityDocument.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,14 @@ public function getType();
4242
*/
4343
public function setId( $id );
4444

45+
/**
46+
* Returns true if the entity has no content.
47+
* Having an id set does not count as having content.
48+
*
49+
* @since 4.3
50+
*
51+
* @return bool
52+
*/
53+
public function isEmpty();
54+
4555
}

0 commit comments

Comments
 (0)