I'd like to create a class called "Object" to be able to implement "toString()", "equal()"... The problem is that the "object" keyword is already taken and I wonder what would be the best implementation.
The first option that comes up to my head is by using namespaces so I don't have any concurrency between php's "object" class and mine. The problem is that if I want to use the two "Object" class, I'll need to rename one of them in my code later.
namespace System
{
class Object
{
}
}
...
use System\Object as Object1;
use object as Object2;
An other option would be to call it differently. If you think its the best option, how would you call it?
class ObjectD
{
}
Do you have any better options?