Passed
Push — master ( 46260f...cb5e2e )
by Jean Paul
01:23
created

FileInput::__construct()   A

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
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Coco\SourceWatcher\Core\IO\Inputs;
4
5
/**
6
 * Class FileInput
7
 * @package Coco\SourceWatcher\Core\Inputs
8
 */
9
class FileInput extends Input
10
{
11
    private ?string $fileLocation;
12
13
    public function __construct ( string $fileLocation )
14
    {
15
        $this->fileLocation = $fileLocation;
16
    }
17
18
    public function getInput ()
19
    {
20
        return $this->fileLocation;
21
    }
22
23
    public function setInput ( $input )
24
    {
25
        $this->fileLocation = $input;
26
    }
27
}
28