Passed
Branch dev (be6874)
by Jakob
02:59
created

RDFMappingService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 3 1
A applyRDFMapping() 0 2 1
1
<?php
2
3
namespace JSKOS\RDF;
4
5
abstract class RDFMappingService extends \JSKOS\ConfiguredService {
6
    private $rdfMapping;
7
8
    public function configure(array $config) {
9
        parent::configure($config);
10
        $this->rdfMapping = new RDFMapping($config);
11
    }
12
13
    public function applyRDFMapping($rdf, $jskos) {
14
        $this->rdfMapping->apply($rdf, $jskos);
15
    }
16
}
17