AuraFactory   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 4
lcom 1
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A newSelect() 0 4 1
A newUpdate() 0 4 1
A newDelete() 0 4 1
1
<?php
2
3
namespace Ps2alerts\Api\Factory;
4
5
use Aura\SqlQuery\QueryFactory;
6
7
class AuraFactory
8
{
9
    protected $factory;
10
11
    public function __construct(QueryFactory $aura)
12
    {
13
        $this->factory = $aura;
14
    }
15
16
    public function newSelect()
17
    {
18
        return $this->factory->newSelect();
19
    }
20
21
    public function newUpdate()
22
    {
23
        return $this->factory->newUpdate();
24
    }
25
26
    public function newDelete()
27
    {
28
        return $this->factory->newDelete();
29
    }
30
}
31