This repository was archived by the owner on Feb 8, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-57
lines changed
src/VectorNetworkProject/TheMix Expand file tree Collapse file tree 3 files changed +2
-57
lines changed Original file line number Diff line number Diff line change 13
13
14
14
abstract class Provider
15
15
{
16
- public function createTable ()
17
- {
18
- throw new \Error ("Missing method 'createTable' " );
19
- }
20
-
21
- public function deleteTable ()
22
- {
23
- throw new \Error ("Missing method 'deleteTable' " );
24
- }
25
-
26
- public function hasTable ()
27
- {
28
- throw new \Error ("Missing method 'hasTable' " );
29
- }
30
-
31
- public function create ()
32
- {
33
- throw new \Error ("Missing method 'create' " );
34
- }
35
-
36
- public function delete ()
37
- {
38
- throw new \Error ("Missing method 'delete' " );
39
- }
40
-
41
- public function has ()
42
- {
43
- throw new \Error ("Missing method 'has' " );
44
- }
45
-
46
- public function set ()
47
- {
48
- throw new \Error ("Missing method 'set' " );
49
- }
50
-
51
- public function remove ()
52
- {
53
- throw new \Error ("Missing method 'remove' " );
54
- }
55
-
56
- public function get ()
57
- {
58
- throw new \Error ("Missing method 'get' " );
59
- }
60
-
61
- public function getAll ()
62
- {
63
- throw new \Error ("Missing method 'getAll' " );
64
- }
65
-
66
- public function getKeys ()
67
- {
68
- throw new \Error ("Missing method 'getKeys' " );
69
- }
70
-
71
16
protected static function getPath (string $ folder , string $ type ): string
72
17
{
73
18
return TheMix::getInstance ()->getDataFolder () . '/ ' . $ folder . '/ ' . $ type . '/ ' ;
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public function getKeys(): array
110
110
* @param string $key
111
111
* @return bool
112
112
*/
113
- public function has (string $ key ): bool
113
+ public function exists (string $ key ): bool
114
114
{
115
115
$ config = new Config ($ this ->path . $ this ->file , Config::JSON );
116
116
return $ config ->exists ($ key )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function getKeys(): array
104
104
* @param string $key
105
105
* @return bool
106
106
*/
107
- public function has (string $ key ): bool
107
+ public function exists (string $ key ): bool
108
108
{
109
109
$ config = new Config ($ this ->path . $ this ->file , Config::YAML );
110
110
return $ config ->exists ($ key )
You can’t perform that action at this time.
0 commit comments