Completed
Branch master (7d7b3f)
by Ori
01:38
created

Resource::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace frictionlessdata\datapackage;
4
5
class Resource
6
{
7
    public static function load($descriptor, $basePath = null)
8
    {
9
        $descriptor = Utils::objectify($descriptor);
10
11
        return Factory::resource($descriptor, $basePath);
12
    }
13
14
    public static function create($descriptor, $basePath = null)
15
    {
16
        $descriptor = Utils::objectify($descriptor);
17
        $skipValidations = true;
18
19
        return Factory::resource($descriptor, $basePath, $skipValidations);
20
    }
21
}
22