Test Failed
Branch master (c7fd68)
by Gaetano
06:34
created

File   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 30
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getResultsFilterCallable() 0 3 1
A getFilename() 0 3 1
A __construct() 0 4 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Db3v4l\Core\SqlAction;
4
5
use Db3v4l\API\Interfaces\SqlAction\FileAction;
6
7
class File implements FileAction
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class File
Loading history...
8
{
9
    protected $filename;
10
    protected $callable;
11
12
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
13
     * @param string $filename
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 8 spaces after parameter type; 1 found
Loading history...
14
     * @param callable|null $callable
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
15
     */
16
    public function __construct($filename, $callable = null)
17
    {
18
        $this->filename = $filename;
19
        $this->callable = $callable;
20
    }
21
22
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
23
     * @return string|null the file with sql statements to execute
24
     */
25
    public function getFilename()
26
    {
27
        return $this->filename;
28
    }
29
30
    /**
31
     * The returned function should accept a single parameter, of type string
32
     * @return callable|null
0 ignored issues
show
Coding Style introduced by
There must be exactly one blank line before the tags in a doc comment
Loading history...
33
     */
34
    public function getResultsFilterCallable()
35
    {
36
        return $this->callable;
37
    }
38
}
39