flyweight on php