Completed
Push — develop ( 6b469b...d09f40 )
by Barry
02:12
created

PdfcrowdException::__toString()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 0
crap 6
1
<?php
2
3
namespace Swis\PdfcrowdClient\Exceptions;
4
5
class PdfcrowdException extends \Exception
6
{
7
    public function __toString()
8
    {
9
        if ($this->code) {
10
            return "[{$this->code}] {$this->message}\n";
11
        } else {
12
            return "{$this->message}\n";
13
        }
14
    }
15
}
16