Completed
Push — develop ( 5ff94a...9cbb35 )
by Barry
01:49
created

PdfcrowdException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 8 2
1
<?php
2
3
namespace Swis\PdfcrowdClient\Exceptions;
4
5
class PdfcrowdException extends \Exception
6
{
7 4
    public function __toString()
8
    {
9 4
        if ($this->code) {
10 2
            return "[{$this->code}] {$this->message}\n";
11
        } else {
12 2
            return "{$this->message}\n";
13
        }
14
    }
15
}
16