GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TestPublishMessageDTO   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTestMessage() 0 4 1
A setTestMessage() 0 6 1
1
<?php
2
3
namespace Ozean12\GooglePubSubBundle\Tests\DTO;
4
5
use Ozean12\GooglePubSubBundle\DTO\MessageDataDTOInterface;
6
7
/**
8
 * Class TestPublishMessageDTO
9
 */
10
class TestPublishMessageDTO implements MessageDataDTOInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    private $testMessage;
16
17
    /**
18
     * TestPublishMessageDTO constructor.
19
     *
20
     * @param string $testMessage
21
     */
22
    public function __construct($testMessage = null)
23
    {
24
        $this->testMessage = $testMessage;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getTestMessage()
31
    {
32
        return $this->testMessage;
33
    }
34
35
    /**
36
     * @param string $testMessage
37
     * @return TestPublishMessageDTO
38
     */
39
    public function setTestMessage(string $testMessage)
40
    {
41
        $this->testMessage = $testMessage;
42
43
        return $this;
44
    }
45
}
46