LoopFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace Dazzle\Loop;
4
5
use Dazzle\Loop\Model\SelectLoop;
6
use Dazzle\Util\Factory\Factory;
7
use Dazzle\Util\Factory\FactoryInterface;
8
9
class LoopFactory extends Factory implements FactoryInterface
10
{
11
    /**
12
     *
13
     */
14 1
    public function __construct()
15
    {
16 1
        parent::__construct();
17
18 1
        $factory = $this;
19
        $factory
20 1
            ->define('SelectLoop', function() {
21 1
                return new SelectLoop();
22 1
            })
23
        ;
24 1
    }
25
}
26