Completed
Push — master ( ca39d5...12bd24 )
by Danny
10:03
created

SupervisorSectionFactory   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 5
dl 0
loc 42
ccs 0
cts 20
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A createSupervisord() 0 4 1
A createRpcInterface() 0 4 1
A createSupervisorctl() 0 4 1
A createProgram() 0 4 1
A createUnixHttpServer() 0 4 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
class SupervisorSectionFactory implements SupervisorSectionFactoryInterface
12
{
13
    /**
14
     * @inheritdoc
15
     */
16
    public function createSupervisord(array $properties = [])
17
    {
18
        return new Supervisord($properties);
19
    }
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function createRpcInterface($name, array $properties = [])
25
    {
26
        return new RpcInterface($name, $properties);
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32
    public function createSupervisorctl(array $properties = [])
33
    {
34
        return new Supervisorctl($properties);
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40
    public function createProgram($name, array $properties = [])
41
    {
42
        return new Program($name, $properties);
43
    }
44
45
    /**
46
     * @inheritdoc
47
     */
48
    public function createUnixHttpServer(array $properties = [])
49
    {
50
        return new UnixHttpServer($properties);
51
    }
52
}
53