src/Token.php
public function setLifetime($modify)
    {
        if (empty($modify)) {
            throw new InvalidArgumentException('Lifetime modifier cannot be null');
        }

        if (!is_string($modify)) {
            throw new InvalidArgumentException('Lifetime modifier must be a string');
        }

        $this->lifetime = $modify;

        $this->setExpires();
    }
public function setLifetime($modify)
    {
        if (empty($modify)) {
            throw new InvalidArgumentException('Lifetime modifier cannot be null');
        }

        if (!is_string($modify)) {
            throw new InvalidArgumentException('Lifetime modifier must be a string');
        }

        $this->lifetime = $modify;

        $this->setExpires();
    }
Public setter used to update the `expires` property by specifying
the token lifetime in PHP DateTime::modify format (e.g. '+3 days').

@param string $modify Any modifier supported by PHP DateTime::modify
@throws \InvalidArgumentException
@return void
@see http://php.net/manual/en/datetime.modify.php