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:
parent
e20292f174
commit
29a9821583
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue