AbstractReasoner   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 35
ccs 0
cts 12
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutputStream() 0 4 1
A setGraphName() 0 4 1
A setInputStream() 0 4 1
A setProperty() 0 4 1
1
<?php
2
/*
3
* Copyright (c) 2019 LinkedData.Center. All rights reserved.
4
*/
5
namespace BOTK\Reasoner;
6
7
abstract class AbstractReasoner  
8
{
9
    
10
    protected $inputStream=STDIN;
11
    protected $outputStream=STDOUT;
12
    protected $graphName='urn:botk:reasoner:graph';
13
    protected $property='urn:botk:reasoner:infers';
14
    
15
    public function setInputStream( $handle )
16
    {
17
        $this->inputStream = $handle;
18
        return $this ;
19
    }
20
    
21
    public function setOutputStream( $handle )
22
    {
23
        $this->outputStream = $handle;
24
        return $this ;
25
    }
26
    
27
    public function setGraphName( $graphName )
28
    {
29
        $this->graphName = $graphName;
30
        return $this ;
31
    }
32
    
33
    
34
    public function setProperty( $property )
35
    {
36
        $this->property = $property;
37
        return $this ;
38
    }
39
    
40
	
41
    abstract public function run();
42
43
}