Passed
Push — master ( de3d61...be839c )
by Alec
13:42 queued 13s
created

SignalProcessingProbe   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isAvailable() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace AlecRabbit\Spinner\Core;
7
8
use AlecRabbit\Spinner\Core\Contract\ISignalProcessingProbe;
9
10
use function extension_loaded;
11
12
final class SignalProcessingProbe implements ISignalProcessingProbe
13
{
14
    private const SIGNAL_PROCESSING_EXTENSION = 'pcntl';
15
16
    public function isAvailable(): bool
17
    {
18
        return extension_loaded(self::SIGNAL_PROCESSING_EXTENSION);
19
    }
20
}
21