Add flyweight in php