Passed
Pull Request — 1.x (#166)
by Akihito
04:39 queued 03:19
created

CommandsProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\QueryRepository;
6
7
use Override;
8
use Ray\Di\ProviderInterface;
9
10
/** @implements ProviderInterface<array<CommandInterface>> */
11
final readonly class CommandsProvider implements ProviderInterface
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 11 at column 6
Loading history...
12
{
13
    public function __construct(
14
        private RefreshSameCommand $refreshSameCommand,
15
        private RefreshAnnotatedCommand $refreshAnnotatedCommand,
16
    ) {
17
    }
18
19
    /**
20
     * {@inheritDoc}
21
     */
22 13
    #[Override]
23
    public function get()
24
    {
25
        return [
26 13
            $this->refreshSameCommand,
27 13
            $this->refreshAnnotatedCommand,
28 13
        ];
29
    }
30
}
31