KernelAwareCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setKernel() 0 3 1
1
<?php
2
3
namespace pjpawel\LightApi\Command\Internal;
4
5
use pjpawel\LightApi\Command\Command;
6
use pjpawel\LightApi\Kernel;
7
8
abstract class KernelAwareCommand extends Command
9
{
10
11
    protected Kernel $kernel;
12
13
    public function setKernel(Kernel $kernel): void
14
    {
15
        $this->kernel = $kernel;
16
    }
17
}