Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public static function create($descriptor = null, $basePath = null) |
||
44 | { |
||
45 | $descriptor = Utils::objectify($descriptor); |
||
46 | if ($descriptor && !isset($descriptor->resources)) { |
||
47 | $descriptor->resources = []; |
||
48 | } |
||
49 | $packageClass = Factory::getDatapackageClass($descriptor); |
||
50 | |||
51 | return new $packageClass($descriptor, $basePath, true); |
||
52 | } |
||
53 | |||
65 |