protected function setExpires()
    {
        $created = $this->created;

        if ($this->lifetime === null) {
            $this->lifetime = self::DEFAULT_LIFETIME;
        }

        $this->expires = $created->modify($this->lifetime);
    }