Issues (14)

src/Runners/AbstractRunner.php (1 issue)

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
The abstract declaration must precede the visibility declaration
Loading history...
45
}
46