Skip to content

Commit 6e51b8b

Browse files
committed
Add isEmpty to EntityDocument
1 parent f4f60f6 commit 6e51b8b

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

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 if the entity has no content.
47+
* Having an id set does not count as having content.
48+
*
49+
* @since 4.2
50+
*
51+
* @return bool
52+
*/
53+
public function isEmpty();
54+
4555
}

0 commit comments

Comments
 (0)