You are here

public function EasyRdf_Collection::key in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Collection.php \EasyRdf_Collection::key()

Return the key / current position in the collection

Note: the first item is number 1

Return value

int The current position

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Collection.php, line 120

Class

EasyRdf_Collection
Sub-class of EasyRdf_Resource that represents an RDF collection (rdf:List)

Code

public function key() {
  return $this->position;
}