Test Setup Failed
Push — master ( 51a98e...17386c )
by Enrico
02:02 queued 10s
created

AbstractReasoner   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 37
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setInputStream() 0 5 1
A setOutputStream() 0 5 1
A setGraphName() 0 5 1
A setProperty() 0 5 1
run() 0 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
}