public function toLdap($value)
{
if (!$value instanceof ADTimeSpan) {
throw new AttributeConverterException(sprintf('The time span format for "%s" should be an instance of "\\LdapTools\\Utilities\\ADTimeSpan"', $this->getAttribute()));
}
return $value->getLdapValue();
}