Passed
Push — master ( 2be253...46260f )
by Jean Paul
01:26
created

FileInput::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Coco\SourceWatcher\Core\Inputs;
4
5
/**
6
 * Class FileInput
7
 * @package Coco\SourceWatcher\Core\Inputs
8
 */
9
class FileInput extends Input
10
{
11
    /**
12
     * @var string
13
     */
14
    private string $fileLocation;
15
16
    /**
17
     * FileInput constructor.
18
     * @param string $fileLocation
19
     */
20
    public function __construct ( string $fileLocation )
21
    {
22
        $this->fileLocation = $fileLocation;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getInput ()
29
    {
30
        return $this->fileLocation;
31
    }
32
33
    /**
34
     * @param string $input
35
     */
36
    public function setInput ( $input )
37
    {
38
        $this->fileLocation = $input;
39
    }
40
}
41