Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit 8305d72

Browse files
committed
Add DataBase
1 parent ad49150 commit 8305d72

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright (c) 2018 VectorNetworkProject. All rights reserved. MIT license.
4+
*
5+
* GitHub: https://github.com/VectorNetworkProject/TheMix
6+
* Website: https://www.vector-network.tk
7+
*/
8+
9+
namespace VectorNetworkProject\TheMix;
10+
11+
12+
use VectorNetworkProject\TheMix\provider\JSON;
13+
use VectorNetworkProject\TheMix\provider\YAML;
14+
15+
class DataBase
16+
{
17+
/**
18+
* @param string $xuid
19+
* @param string $file
20+
* @return JSON
21+
*/
22+
public static function JsonUserSetting(string $xuid, $file = "UserDatas"): JSON
23+
{
24+
return new JSON($xuid, $file);
25+
}
26+
27+
/**
28+
* @return YAML
29+
*/
30+
public static function YamlClientSetting(): YAML
31+
{
32+
return new YAML();
33+
}
34+
}

0 commit comments

Comments
 (0)