Lines Matching refs:entry
25 * Represents a collection of entry objects.
61 foreach ($entries as $entry) {
62 if (($index = array_search($entry, $this->entries, true)) !== false) {
71 * Check whether or not an entry (either an Entry object or string DN) exists within the entries.
73 * @param Entry|Dn|string $entry
76 public function has($entry): bool
78 if ($entry instanceof Entry) {
79 return (array_search($entry, $this->entries, true) !== false);
83 if ((string) $entry === $entryObj->getDn()->toString()) {
92 * Get an entry from the collection by its DN.
99 foreach ($this->entries as $entry) {
100 if ($entry->getDn()->toString() === $dn) {
101 return $entry;
109 * Get the first entry object, if one exists.
115 $entry = reset($this->entries);
117 return $entry === false ? null : $entry;
121 * Get the last entry object, if one exists.
127 $entry = end($this->entries);
130 return $entry === false ? null : $entry;