LoopFactory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
crap 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