Completed
Push — master ( 6593bf...678353 )
by Florent
02:22
created

HasPayloadConverter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 2
c 3
b 1
f 1
lcom 0
cbo 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayloadConverter() 0 4 1
A getPayloadConverter() 0 4 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2015 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace Jose\Behaviour;
13
14
use Jose\Payload\PayloadConverterManagerInterface;
15
16
trait HasPayloadConverter
17
{
18
    /**
19
     * @var \Jose\Payload\PayloadConverterManagerInterface
20
     */
21
    private $payload_converter;
22
23
    /**
24
     * @param \Jose\Payload\PayloadConverterManagerInterface $payload_converter
25
     */
26
    private function setPayloadConverter(PayloadConverterManagerInterface $payload_converter)
27
    {
28
        $this->payload_converter = $payload_converter;
29
    }
30
31
    /**
32
     * @return \Jose\Payload\PayloadConverterManagerInterface
33
     */
34
    private function getPayloadConverter()
35
    {
36
        return $this->payload_converter;
37
    }
38
}
39