DiServiceNotFound   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createFromServiceId() 0 5 1
1
<?php
2
namespace UltraLite\Container\Exception;
3
4
use Psr\Container\NotFoundExceptionInterface;
5
6
class DiServiceNotFound extends \InvalidArgumentException implements NotFoundExceptionInterface
7
{
8
    /**
9
     * @param string $serviceId
10
     * @return DiServiceNotFound
11
     */
12
    public static function createFromServiceId(string $serviceId)
13
    {
14
        $message = "Service '$serviceId' requested from DI container, but not found.";
15
        return new static($message);
16
    }
17
}
18