LdapTools\Utilities\ConverterUtilitiesTrait::validateCurrentAttribute PHP Method

validateCurrentAttribute() protected method

If the current attribute does not exist in the array, then throw an error.
protected validateCurrentAttribute ( array $options )
$options array
    protected function validateCurrentAttribute(array $options)
    {
        if (!array_key_exists(MBString::strtolower($this->getAttribute()), MBString::array_change_key_case($options))) {
            throw new AttributeConverterException(sprintf('You must first define "%s" in the options for this converter.', $this->getAttribute()));
        }
    }