WordRankManagerException::errorMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace John\Exceptions;
4
5
use Exception;
6
7
/**
8
 * WorkRank Manager Exceptions.
9
 *
10
 */
11
class WordRankManagerException extends Exception
12
{
13
14
    protected $message;
15
    /**
16
     *  Capture thrown [errorMessage]
17
     *
18
     * @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...
19
     */
20
    public function __construct($message)
21
    {
22
        $this->message = $message;
23
    }
24
25
    /**
26
     * Return thrown error message
27
     *
28
     * @return string error message
29
     */
30
    public function errorMessage()
31
    {
32
         return $this->message;
33
    }
34
}
35