Completed
Push — master ( 2f8322...f18f78 )
by Gaël
11:24
created

Exception   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A trackingError() 0 3 1
1
<?php
2
3
namespace DansMaCulotte\LaPoste\Exceptions;
4
5
class Exception extends \Exception
6
{
7
    /**
8
     * @param string $message
9
     * @return Exception
10
     */
11
    public static function trackingError(string $message)
12
    {
13
        return new self("Tracking request returned an error: ${message}");
14
    }
15
}
16