TransportReceiveInfrastructure::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 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