OutboxTransportOperationFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 18
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 9 1
1
<?php
2
namespace PSB\Core\Outbox;
3
4
5
use PSB\Core\Transport\OutgoingPhysicalMessage;
6
7
class OutboxTransportOperationFactory
8
{
9
    /**
10
     * @param OutgoingPhysicalMessage $physicalMessage
11
     * @param array                   $options
12
     *
13
     * @return OutboxTransportOperation
14
     */
15 1
    public function create(OutgoingPhysicalMessage $physicalMessage, array $options)
16
    {
17 1
        return new OutboxTransportOperation(
18 1
            $physicalMessage->getMessageId(),
19 1
            $options,
20 1
            $physicalMessage->getBody(),
21 1
            $physicalMessage->getHeaders()
22
        );
23
    }
24
}
25