LdapTools\Object\LdapObjectCollection::first PHP Method

first() public method

Sets the collection array pointer to the first element and returns it.
public first ( ) : LdapObject | boolean
return LdapObject | boolean
    public function first()
    {
        return reset($this->objects);
    }