Completed
Pull Request — master (#16)
by Alessandro
06:12
created

Runtime   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A classExists() 0 4 1
A extensionLoaded() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Fazland\SkebbyRestClient\Runtime;
6
7
use function class_exists;
8
use function extension_loaded;
9
10
class Runtime implements RuntimeInterface
11
{
12
    public function classExists(string $fqcn, bool $autoload = true): bool
13
    {
14
        return class_exists($fqcn, $autoload);
15
    }
16
17
    public function extensionLoaded(string $extension): bool
18
    {
19
        return extension_loaded($extension);
20
    }
21
}
22