public function toLdap($value)
{
$this->validateCurrentAttribute($this->getOptions()['addressType']);
$this->setDefaultLastValue('proxyAddresses', []);
$this->modifyAddressArray($value);
if ($this->getOperationType() == self::TYPE_MODIFY) {
$this->getBatch()->setModType(Batch::TYPE['REPLACE']);
}
return $this->getLastValue();
}