ModuleManagerFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
namespace Samurai\Module\Factory;
3
4
use Balloon\Factory\BalloonFactory;
5
6
/**
7
 * Class ModuleManagerFactory
8
 * @package Samurai\Module\Factory
9
 * @author Raphaël Lefebvre <[email protected]>
10
 */
11
class ModuleManagerFactory extends BalloonFactory
12
{
13
    /**
14
     * @param string $filePath
15
     * @param string $className
16
     * @param string $primaryKey
17
     * @return \Samurai\Module\ModuleManager
18
     */
19 6
    public function create($filePath, $className = 'Samurai\Module\Module', $primaryKey = 'name')
20
    {
21 6
        return parent::create($filePath, $className, $primaryKey);
22
    }
23
24
    /**
25
     * @return string
26
     */
27 6
    protected function getClassName()
28
    {
29 6
        return 'Samurai\Module\ModuleManager';
30
    }
31
}
32