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

File::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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