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

FileInput   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 17
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setInput() 0 3 1
A getInput() 0 3 1
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