LookupInResult
interface LookupInResult implements Result (View source)
Interface for results created by the lookupIn operation.
Methods
Returns the value located at the index specified
Returns whether or not the path at the index specified exists
Returns any error code for the path at the index specified
Returns the document expiration time or null if the document does not expire.
Details
string|null
cas()
Returns the CAS value for the document
object|null
content(int $index)
Returns the value located at the index specified
bool
exists(int $index)
Returns whether or not the path at the index specified exists
int
status(int $index)
Returns any error code for the path at the index specified
DateTimeInterface|null
expiryTime()
Returns the document expiration time or null if the document does not expire.
Note, that this function will return expiry only when LookupInOptions had withExpiry set to true.