public function AbstractLazyCollection::containsKey in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php \Doctrine\Common\Collections\AbstractLazyCollection::containsKey()
Checks whether the collection contains an element with the specified key/index.
Parameters
string|integer $key The key/index to check for.:
Return value
boolean TRUE if the collection contains an element with the specified key/index, FALSE otherwise.
Overrides Collection::containsKey
File
- vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php, line 110
Class
- AbstractLazyCollection
- Lazy collection that is backed by a concrete collection
Namespace
Doctrine\Common\CollectionsCode
public function containsKey($key) {
$this
->initialize();
return $this->collection
->containsKey($key);
}