Passed
Push — 1.x ( 90de9d...e2e7a5 )
by Akihito
05:28 queued 03:04
created

Invoker   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
wmc 2
1
<?php
2
// phpcs:ignoreFile
3
4
namespace BEAR\Resource;
5
6
final readonly class Invoker implements InvokerInterface
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 6 at column 6
Loading history...
7
{
8
    public function __construct(
9
        private PhpClassInvoker $classInvoker
10
    ) {
11
    }
12
13
    /**
14
     * {@inheritdoc}
15
     *
16
     * @psalm-suppress PossiblyUnusedReturnValue
17
     */
18
    #[\Override]
19
    public function invoke(AbstractRequest $request): ResourceObject
20
    {
21
        return $request->resourceObject->_invokeRequest($this->classInvoker, $request);
22
    }
23
}
24