Completed
Push — master ( 7ca08e...5a5cfd )
by Matt
02:19
created

SubmitSpamResult   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
namespace Gothick\AkismetClient\Result;
3
4
/**
5
 * Result of calling the submit-spam method on the Akismet API.
6
 * @author matt
7
 *
8
 */
9
class SubmitSpamResult extends ClientResult
10
{
11
	/**
12
	 * Create a result; throws if the result body isn't in the known list of responses.
13
	 * @param \GuzzleHttp\Psr7\Response $response
14
	 */
15 11
	public function __construct(\GuzzleHttp\Psr7\Response $response)
16
	{
17 11
		parent::__construct($response, [ 'Thanks for making the web a better place.' ]);
18 9
	}
19
}
20