LdapTools\AttributeConverter\ConvertLockoutTime::getLockDateTime PHP Method

getLockDateTime() protected method

protected getLockDateTime ( DateTime $value ) : string
$value DateTime
return string
    protected function getLockDateTime($value)
    {
        if (!$value instanceof \DateTime) {
            throw new AttributeConverterException(sprintf('The value for %s is expected to be a \\DateTime object.', $this->getAttribute()));
        }
        return (new ConvertWindowsTime())->toLdap($value);
    }