1 | <?php |
||
8 | class Package |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @param $source |
||
13 | * @param null $basePath |
||
14 | * |
||
15 | * @return \frictionlessdata\datapackage\Datapackages\BaseDatapackage |
||
16 | * @throws \Exception |
||
17 | * @throws \frictionlessdata\datapackage\Exceptions\DatapackageInvalidSourceException |
||
18 | */ |
||
19 | public static function load($source, $basePath = null) |
||
23 | |||
24 | /** |
||
25 | * @param $source |
||
26 | * @param null $basePath |
||
27 | * |
||
28 | * @return \frictionlessdata\datapackage\Validators\DatapackageValidationError[] |
||
29 | * @throws \Exception |
||
30 | */ |
||
31 | public static function validate($source, $basePath = null) |
||
35 | |||
36 | /** |
||
37 | * @param null $descriptor |
||
38 | * @param null $basePath |
||
39 | * |
||
40 | * @return mixed |
||
41 | * @throws \Exception |
||
42 | */ |
||
43 | public static function create($descriptor = null, $basePath = null) |
||
53 | |||
54 | /** |
||
55 | * @throws \Exception |
||
56 | */ |
||
57 | public static function isZipPresent() |
||
64 | } |
||
65 |