Completed
Push — master ( e67ef9...d5a49f )
by Tobias
03:42
created

DeleteResponse::getMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * Copyright (C) 2013-2016 Mailgun
5
 *
6
 * This software may be modified and distributed under the terms
7
 * of the MIT license. See the LICENSE file for details.
8
 */
9
10
namespace Mailgun\Resource\Api\Tag;
11
12
use Mailgun\Resource\ApiResponse;
13
14
/**
15
 * @author Tobias Nyholm <[email protected]>
16
 */
17
final class DeleteResponse implements ApiResponse
18
{
19
    /**
20
     * @var string
21
     */
22
    private $message;
23
24
    /**
25
     * @param string $message
26
     */
27
    private function __construct($message)
28
    {
29
        $this->message = $message;
30
    }
31
32
    /**
33
     * @param array $data
34
     *
35
     * @return DeleteResponse
36
     */
37
    public static function create(array $data)
38
    {
39
        return new self($data['message']);
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getMessage()
46
    {
47
        return $this->message;
48
    }
49
}
50