Completed
Push — master ( fab06e...bf6fea )
by Matt
02:58
created

VerifyKeyResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isValid() 0 2 1
A __construct() 0 3 1
1
<?php
2
namespace Gothick\AkismetClient;
3
4
class VerifyKeyResult extends ClientResult
5
{
6 6
	public function __construct(\GuzzleHttp\Psr7\Response $response)
7
	{
8 6
		parent::__construct($response, ['valid', 'invalid']);
9 5
	}
10
11 3
	public function isValid() {
12 3
		return $this->raw_result == 'valid';
13
	}
14
}