Completed
Pull Request — master (#16)
by Alessandro
01:35
created

Runtime::extensionLoaded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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