public function get()
{
$attrib = $this->attribute;
$modtype = $this->type;
$values = $this->values;
switch ($modtype) {
case LDAP_MODIFY_BATCH_REMOVE_ALL:
// A values key cannot be provided when
// a remove all type is selected.
return compact('attrib', 'modtype');
case LDAP_MODIFY_BATCH_REMOVE:
return compact('attrib', 'modtype', 'values');
case LDAP_MODIFY_BATCH_ADD:
return compact('attrib', 'modtype', 'values');
case LDAP_MODIFY_BATCH_REPLACE:
return compact('attrib', 'modtype', 'values');
default:
// If the modtype isn't recognized, we'll return null.
return;
}
}