AkismetException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Gothick\AkismetClient;
3
4
/**
5
 * Specialised exception class for all Akismet client errors.
6
 * @author matt
7
 *
8
 */
9
class AkismetException extends \Exception
10
{
11
	// TODO: If this is all we end up doing, do we need this class at all? Might help
12
	// to distinguish our known errors from more serious errors in testing, I suppose...
13 26
	public function __construct($message, $code = 0, ?\Exception $previous = null)
14
	{
15 26
		parent::__construct('Gothick\AkismetClient: ' . $message, $code,
16 26
				$previous);
17
	}
18
}