1 | <?php |
||
5 | class ModelFactory |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Make a Model Factory |
||
10 | * |
||
11 | * @param array $data Model Data |
||
12 | * |
||
13 | * @return \Kunnu\Dropbox\Models\ModelInterface |
||
14 | */ |
||
15 | public static function make(array $data = array()) |
||
54 | |||
55 | /** |
||
56 | * @param array $data |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | protected static function isFileOrFolder(array $data) |
||
64 | |||
65 | /** |
||
66 | * @param string $tag |
||
67 | * |
||
68 | * @return bool |
||
69 | */ |
||
70 | protected static function isFile($tag) |
||
74 | |||
75 | /** |
||
76 | * @param string $tag |
||
77 | * |
||
78 | * @return bool |
||
79 | */ |
||
80 | protected static function isFolder($tag) |
||
84 | |||
85 | /** |
||
86 | * @param array $data |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | protected static function isTemporaryLink(array $data) |
||
94 | |||
95 | /** |
||
96 | * @param array $data |
||
97 | * |
||
98 | * @return bool |
||
99 | */ |
||
100 | protected static function isList(array $data) |
||
104 | |||
105 | /** |
||
106 | * @param array $data |
||
107 | * |
||
108 | * @return bool |
||
109 | */ |
||
110 | protected static function isSearchResult(array $data) |
||
114 | |||
115 | /** |
||
116 | * @param array $data |
||
117 | * |
||
118 | * @return bool |
||
119 | */ |
||
120 | protected static function isDeletedFileOrFolder(array $data) |
||
124 | } |
||
125 |