blob: 8053a1b3bce6a67c518c99227e488ad676a64f87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?php
/*
* Copyright (C) 2013-2016 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Model\Domain;
use Mailgun\Model\ApiResponse;
/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
final class UpdateCredentialResponse implements ApiResponse
{
/**
* @var string
*/
private $message;
/**
* @param string $message
*/
private function __construct($message)
{
$this->message = $message;
}
/**
* @param array $data
*
* @return self
*/
public static function create(array $data)
{
return new self(isset($data['message']) ? $data['message'] : null);
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
|