Passed
Push — master ( a535f0...f38dcf )
by Jean Paul
08:30
created

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