Using Entity:GetSpawnFlags?

Does it even work? If so how can i use it, cause this would save me a hell allot of work, the wiki only tells that there is such a function, doesn’t say how to use it or if even it works.

Tried to print it out, got nothing when an entity has spawnflags. So am i to assume its broken or that i don’t know how to use it?