TransportReceiveInfrastructure   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 40
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getMessagePusherFactory() 0 4 1
A getQueueCreatorFactory() 0 4 1
1
<?php
2
namespace PSB\Core\Transport\Config;
3
4
5
class TransportReceiveInfrastructure
6
{
7
    /**
8
     * @var callable
9
     */
10
    private $messagePusherFactory;
11
12
    /**
13
     * @var callable
14
     */
15
    private $queueCreatorFactory;
16
17
    /**
18
     * @param callable $messagePusherFactory
19
     * @param callable  $queueCreatorFactory
20
     */
21 4
    public function __construct(
22
        callable $messagePusherFactory,
23
        callable $queueCreatorFactory
24
    ) {
25 4
        $this->messagePusherFactory = $messagePusherFactory;
26 4
        $this->queueCreatorFactory = $queueCreatorFactory;
27 4
    }
28
29
    /**
30
     * @return callable
31
     */
32 1
    public function getMessagePusherFactory()
33
    {
34 1
        return $this->messagePusherFactory;
35
    }
36
37
    /**
38
     * @return callable
39
     */
40 1
    public function getQueueCreatorFactory()
41
    {
42 1
        return $this->queueCreatorFactory;
43
    }
44
}
45