interface RepositoryIdInterface (View source)

Interface to be implemented by repositories that should act as id generator.

Methods

string
generateId(object $document, object $parent = null)

Generate a document id.

Details

string generateId(object $document, object $parent = null)

Generate a document id.

Parameters

object $document
object $parent

Return Value

string the id for this document