protected _mapOptionToAttribute ( string $option ) : string | ||
$option | string | The SpamAssassin option to convert. |
return | string | The converted Sam attribute or the original option if no match is found. |
protected function _mapOptionToAttribute($option)
{
$attribute_map = array_flip($this->_option_map);
return isset($attribute_map[$option]) ? $attribute_map[$option] : $option;
}