Completed
Push — master ( 9003e7...f2c4d3 )
by ReliQ
04:59
created

Exception::withMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ReliQArts\Docweaver\Exceptions;
6
7
use Exception as BaseException;
8
use ReliQArts\Docweaver\Contracts\Exception as ExceptionContract;
9
10
abstract class Exception extends BaseException implements ExceptionContract
11
{
12
    /**
13
     * @param string $message
14
     *
15
     * @return ExceptionContract
16
     */
17
    final public function withMessage(string $message): ExceptionContract
18
    {
19
        $this->message = $message;
20
21
        return $this;
22
    }
23
}
24