AbstractReasoner::setOutputStream()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
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
}