public function AbstractLazyCollection::key in Plug 7
Gets the key/index of the element at the current iterator position.
Return value
int|string
Overrides Collection::key
File
- lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php, line 182
Class
- AbstractLazyCollection
- Lazy collection that is backed by a concrete collection
Namespace
Doctrine\Common\CollectionsCode
public function key() {
$this
->initialize();
return $this->collection
->key();
}