Completed
Push — trunk ( 8dcff2...338765 )
by SuperNova.WS
04:11
created

StorageV2   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 28
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setDb() 0 2 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * Created by Gorlum 21.04.2018 16:13
4
 */
5
6
namespace Core;
7
8
9
use DBAL\db_mysql;
10
11
class StorageV2 {
12
13
  /**
14
   * @var GlobalContainer $gc
15
   * @deprecated
16
   */
17
  protected $gc;
18
19
  /**
20
   * @var db_mysql
21
   */
22
  protected $db;
23
24
  /**
25
   * Core\Repository constructor.
26
   *
27
   * @param GlobalContainer $gc
28
   */
29
  public function __construct(GlobalContainer $gc) {
30
    $this->gc = $gc;
0 ignored issues
show
Deprecated Code introduced by
The property Core\StorageV2::$gc has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

30
    /** @scrutinizer ignore-deprecated */ $this->gc = $gc;
Loading history...
31
    $this->db = $gc->db;
32
  }
33
34
  /**
35
   * @param db_mysql $db
36
   */
37
  public function setDb(db_mysql $db) {
38
    $this->db = $db;
39
  }
40
41
}
42