Completed
Push — develop ( f7eeaa...f5cecb )
by Michael
02:02
created

ServiceMissingException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A noHttpClient() 0 4 1
A noMessageFactory() 0 4 1
1
<?php
2
3
namespace Teazee\Exception;
4
5
use LogicException;
6
7
class ServiceMissingException extends LogicException
8
{
9
    public static function noHttpClient()
10
    {
11 1
        return new self('No HttpClient provided and no discovery service is present to guess it, maybe you need to install the php-http/discovery package?');
12
    }
13
14
    public static function noMessageFactory()
15
    {
16 1
        return new self('No MessageFactory provided and no discovery service is present to guess it, maybe you need to install the php-http/discovery package?');
17
    }
18
}
19