src/MongoDB.php
protected function getTtlBSON($ttl): ?BSONUTCDatetime
    {
        return isset($ttl) ? new BSONUTCDateTime($this->ttlToTimestamp($ttl) * 1000) : null;
    }
protected function getTtlBSON($ttl): ?BSONUTCDatetime
    {
        return isset($ttl) ? new BSONUTCDateTime($this->ttlToTimestamp($ttl) * 1000) : null;
    }
protected function getTtlBSON ( $ ttl ) : ? BSONUTCDatetime { return isset ( $ ttl ) ? new BSONUTCDateTime ( $ this -> ttlToTimestamp ( $ ttl ) * 1000 ) : null ; }
Get TTL as Date type BSON object

@param null|int|DateInterval $ttl
@return BSONUTCDatetime|null
Get TTL as Date type BSON object