Why is in the docs the ‘format’ method separated from the class name by a double colon?

As far as I know format is not static method of the class DateInterval .
But in docs I see following syntax: DateInterval::format.

Why is that? And where did this syntax come from?