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

SubmitSpamResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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