Completed
Push — master ( 26b7f9...bdc586 )
by John
01:51
created

WordRankManagerException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 1
Metric Value
wmc 2
c 1
b 1
f 1
lcom 0
cbo 0
dl 0
loc 24
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A errorMessage() 0 4 1
1
<?php
2
namespace John\Exceptions;
3
4
use Exception;
5
6
/**
7
 * WorkRank Manager Exceptions.
8
 *
9
 */
10
class WordRankManagerException extends Exception
11
{
12
13
    protected $message;
14
    /**
15
     *  Capture thrown [errorMessage]
16
     *
17
     * @return [string] [Return caught error]
0 ignored issues
show
Documentation introduced by
The doc-type [string] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
18
     */
19
    public function __construct($message)
20
    {
21
        $this->message = $message;
22
    }
23
24
    /**
25
     * Return thrown error message
26
     *
27
     * @return string error message
28
     */
29
    public function errorMessage()
30
    {
31
         return $this->message;
32
    }
33
}
34