
Fabian Schmengler - 2010-04-02 14:30:29 -
In reply to message 1 from Martin Alterisio
This was my first attempt but as far as I know PHP does not allow initialization of class constants with objects*, for this reason I chose class methods in the first place. If you have an idea to solve this, I'd be happy to hear about it. It should be possible with runkit but I don't know if I should rely on it.
*) at least something like this does not work:
class Suite
{
const SPADES = new Suite('SPADES');
}