Completed
Push — master ( 5f8b5c...6198ec )
by Miloš
01:17
created

InvalidFactoryException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
3
namespace Laganica\Di\Exception;
4
5
/**
6
 * Class InvalidFactoryException
7
 *
8
 * @package Laganica\Di\Exception
9
 */
10
class InvalidFactoryException extends ContainerException
11
{
12
    /**
13
     * @param string $factoryClass
14
     * @param string $factoryInterface
15
     *
16
     * @return self
17
     */
18 1
    public static function create(string $factoryClass, string $factoryInterface): self
19
    {
20 1
        return new self("$factoryClass must implement $factoryInterface");
21
    }
22
}
23