1 | <?php |
||
13 | abstract class AbstractEntity |
||
14 | { |
||
15 | /** |
||
16 | * @var bool|StarCitizensClient |
||
17 | */ |
||
18 | protected static $client = false; |
||
19 | |||
20 | protected static $system; |
||
21 | |||
22 | const MODELS = []; |
||
23 | const BASEPROFILE = ''; |
||
24 | |||
25 | /** |
||
26 | * Find an account information |
||
27 | * |
||
28 | * @param $id |
||
29 | * @param string $profileType |
||
30 | * @param bool $cache |
||
31 | * @param bool $raw |
||
32 | * |
||
33 | * @return bool|mixed |
||
34 | */ |
||
35 | 15 | protected static function find($id, $profileType, $cache = false, $raw = false) |
|
51 | |||
52 | /** |
||
53 | * @param $id |
||
54 | * @param $profileType |
||
55 | * @param $cache |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | 15 | private static function getParams($id, $profileType, $cache) |
|
74 | |||
75 | /** |
||
76 | * @param $response |
||
77 | * @param $profileType |
||
78 | * @param $raw |
||
79 | * |
||
80 | * @return bool|mixed |
||
81 | */ |
||
82 | 15 | private static function checkResponse($response, $profileType, $raw) |
|
94 | |||
95 | /** |
||
96 | * Setup the client |
||
97 | */ |
||
98 | 15 | private static function setupClient() |
|
104 | |||
105 | /** |
||
106 | * Fills our model in with the provided data |
||
107 | * |
||
108 | * @param $modelType |
||
109 | * @param $fillData |
||
110 | * |
||
111 | * @return Model |
||
112 | */ |
||
113 | 15 | public static function fillModel($modelType, $fillData) |
|
124 | |||
125 | } |