Add hasIndex() to OCP\FullTextSearch\Model\IndexDocument

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Co-Authored-By: daita <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2019-02-16 09:40:12 -01:00 committed by Morris Jobke
parent e20292f174
commit 29a9821583
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 11 additions and 0 deletions

View File

@ -183,6 +183,17 @@ class IndexDocument implements JsonSerializable {
return $this->index;
}
/**
* return if Index is defined.
*
* @since 16.0.0
*
* @return bool
*/
final public function hasIndex(): bool {
return $this->index !== null;
}
/**
* Set the modified time of the original document.