I would use them to implement factory
pattern, for example:
class Types{
static const car = "CarClass";
static const tree = "TreeClass";
static const cat = "CatClass";
static const deathstar = "DeathStarClass";
}
And I would like to use them like:
$x = new Types::car;
Is it possible?
And what if my class has parametr in construcor, that doesn't work:
$x = new Types::car(123);