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 | 22 | public static function make(array $data = array()) |
|
60 | |||
61 | /** |
||
62 | * @param array $data |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | 22 | protected static function isFileOrFolder(array $data) |
|
70 | |||
71 | /** |
||
72 | * @param string $tag |
||
73 | * |
||
74 | * @return bool |
||
75 | */ |
||
76 | 20 | protected static function isFile($tag) |
|
80 | |||
81 | /** |
||
82 | * @param string $tag |
||
83 | * |
||
84 | * @return bool |
||
85 | */ |
||
86 | 11 | protected static function isFolder($tag) |
|
90 | |||
91 | /** |
||
92 | * @param array $data |
||
93 | * |
||
94 | * @return bool |
||
95 | */ |
||
96 | 9 | protected static function isTemporaryLink(array $data) |
|
100 | |||
101 | /** |
||
102 | * @param array $data |
||
103 | * |
||
104 | * @return bool |
||
105 | */ |
||
106 | 8 | protected static function isList(array $data) |
|
110 | |||
111 | /** |
||
112 | * @param array $data |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | 4 | protected static function isSearchResult(array $data) |
|
120 | |||
121 | /** |
||
122 | * @param string $tag |
||
123 | * |
||
124 | * @return bool |
||
125 | */ |
||
126 | 1 | protected static function isDeletedFileOrFolder($tag) |
|
130 | } |
||
131 |