SupervisorSectionFactory::createProgram()   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 2
crap 1
1
<?php
2
3
namespace MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Supervisor;
4
5
use Supervisor\Configuration\Section\Program;
6
use Supervisor\Configuration\Section\RpcInterface;
7
use Supervisor\Configuration\Section\Supervisorctl;
8
use Supervisor\Configuration\Section\Supervisord;
9
use Supervisor\Configuration\Section\UnixHttpServer;
10
11
final class SupervisorSectionFactory implements SupervisorSectionFactoryInterface
12
{
13
    /**
14
     * @inheritdoc
15
     */
16 1
    public function createSupervisord(array $properties = [])
17
    {
18 1
        return new Supervisord($properties);
19
    }
20
21
    /**
22
     * @inheritdoc
23
     */
24 1
    public function createRpcInterface($name, array $properties = [])
25
    {
26 1
        return new RpcInterface($name, $properties);
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32 1
    public function createSupervisorctl(array $properties = [])
33
    {
34 1
        return new Supervisorctl($properties);
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40 1
    public function createProgram($name, array $properties = [])
41
    {
42 1
        return new Program($name, $properties);
43
    }
44
45
    /**
46
     * @inheritdoc
47
     */
48 1
    public function createUnixHttpServer(array $properties = [])
49
    {
50 1
        return new UnixHttpServer($properties);
51
    }
52
}
53