Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DatabaseLoader extends Loader |
||
11 | { |
||
12 | /** |
||
13 | * @var Connector |
||
14 | */ |
||
15 | private Connector $connector; |
||
16 | |||
17 | /** |
||
18 | * @param Row $row |
||
19 | * @throws SourceWatcherException |
||
20 | */ |
||
21 | public function load ( Row $row ) |
||
22 | { |
||
23 | $this->insert( $row ); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return Connector |
||
28 | */ |
||
29 | public function getConnector () : Connector |
||
30 | { |
||
31 | return $this->connector; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param Connector $connector |
||
36 | */ |
||
37 | public function setConnector ( Connector $connector ) : void |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param Row $row |
||
44 | * @throws SourceWatcherException |
||
45 | */ |
||
46 | protected function insert ( Row $row ) : void |
||
53 | } |
||
54 | } |
||
55 |