protected function filterTtl(&$ttl): void
    {
        if ($ttl !== null) {
            if ($ttl instanceof \DateInterval) {
                $ttl = (int) $ttl->format('%s');
            }
            $ttl = (int) $ttl;
        }
    }
protected function filterTtl(&$ttl): void
    {
        if ($ttl !== null) {
            if ($ttl instanceof \DateInterval) {
                $ttl = (int) $ttl->format('%s');
            }
            $ttl = (int) $ttl;
        }
    }
protected function filterTtl ( & $ ttl ) : void { if ( $ ttl !== null ) { if ( $ ttl instanceof \ DateInterval ) { $ ttl = ( int ) $ ttl -> format ( '%s' ) ; } $ ttl = ( int ) $ ttl ; } }
Mixed ttl to seconds
@param mixed $ttl
@return void
Mixed ttl to seconds