LdapTools\AttributeConverter\ConvertValueToDn::getOptionsArray PHP Method

getOptionsArray() protected method

Validates and retrieves the options array for the current attribute.
protected getOptionsArray ( ) : array
return array
    protected function getOptionsArray()
    {
        $this->validateCurrentAttribute();
        $options = $this->getArrayValue($this->options, $this->getAttribute());
        if (!isset($options['filter']) || !is_array($options['filter'])) {
            throw new AttributeConverterException(sprintf('Filter not valid for "%s".', $this->getAttribute()));
        }
        if (!isset($options['attribute'])) {
            throw new AttributeConverterException(sprintf('Attribute to search on not defined for "%s"', $this->getAttribute()));
        }
        return $options;
    }