public static function create($value, $purpose, DateTime $date)
    {
        return new self(
            sprintf(
                'The "%s" token with value "%s" is expired since "%s".',
                $purpose,
                $value,
                $date->format(DateTime::ISO8601)
            )
        );
    }
public static function create($value, $purpose, DateTime $date)
    {
        return new self(
            sprintf(
                'The "%s" token with value "%s" is expired since "%s".',
                $purpose,
                $value,
                $date->format(DateTime::ISO8601)
            )
        );
    }
public static function create ( $ value , $ purpose , DateTime $ date ) { return new self ( sprintf ( 'The "%s" token with value "%s" is expired since "%s".' , $ purpose , $ value , $ date -> format ( DateTime :: ISO8601 ) ) ) ; }
Create an instance of this class.

@param string   $value   The token value
@param string   $purpose The token purpose
@param DateTime $date    The token expiration date

@return TokenExpiredException
Create an instance of this class .