private static getExpireTime ( mixed $element, integer | null $maxExpireTime ) : integer | ||
$element | mixed | The element we should determine the expiry time of. |
$maxExpireTime | integer | null | The maximum expiration time. |
return | integer | The unix timestamp for when the element should expire. Will be NULL if no limit is set for the element. |