Invoker   A
last analyzed

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A invoke() 0 4 1
1
<?php
2
// phpcs:ignoreFile
3
4
namespace BEAR\Resource;
5
6
final class Invoker implements InvokerInterface
7
{
8
    public function __construct(
9
        private readonly 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