Add StaticFactory in PHP