public static function fromFile($file, $params) { $instance = new self(); $instance->initialize_from_file($file, $params); return $instance; }