Identified

Trait for entities with an ObjectID

trait Identified
Copyright
2015-2016 Appertly
Since
0.3.0
License
Apache-2.0

Instance Properties

Protected
NameTypeSummary
$idObjectID

The document identifier

Instance Methods

Public
ReturnsSignature and Description
ObjectID

Gets the document identifier

Property Details

$id

protected ObjectID $id

The document identifier

Method Details

getId

public function getId()

Gets the document identifier

Returns
TypeDescription
ObjectID

The document ID