Form/ChoiceLoader/LdapObjectChoiceTrait.php
protected function getLdapValuesForChoices(LdapObject ...$choices)
    {
        $values = [];

        foreach ($choices as $i => $ldapObject) {
            $values[$i] = (string) $ldapObject->get($this->id);
        }

        return $values;
    }
protected function getLdapValuesForChoices(LdapObject ...$choices)
    {
        $values = [];

        foreach ($choices as $i => $ldapObject) {
            $values[$i] = (string) $ldapObject->get($this->id);
        }

        return $values;
    }
Get the values of a set of choices.

@param LdapObject[] $choices
@return array