AbstractRunner::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BfwSql\Runners;
4
5
/**
6
 * Abstract class to define properties and methods used by all runners.
7
 * 
8
 * @package bfw-sql
9
 * @author Vermeulen Maxime <[email protected]>
10
 * @version 2.0
11
 */
12
abstract class AbstractRunner
13
{
14
    /**
15
     * @var \BFW\Module Current bfw-sql module instance
16
     */
17
    protected $module;
18
    
19
    /**
20
     * Construct
21
     * 
22
     * @param \BFw\Module $module The bfw-sql module instance
23
     */
24
    public function __construct(\BFw\Module $module)
25
    {
26
        $this->module = $module;
27
    }
28
    
29
    /**
30
     * Getter accessor to module property
31
     * 
32
     * @return \BFW\Module
33
     */
34
    public function getModule(): \BFW\Module
35
    {
36
        return $this->module;
37
    }
38
    
39
    /**
40
     * Run the system
41
     * 
42
     * @return void
43
     */
44
    public abstract function run();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
45
}
46