Issues (141)

src/Invoker.php (1 issue)

1
<?php
2
// phpcs:ignoreFile
3
4
namespace BEAR\Resource;
5
6
final readonly class Invoker implements InvokerInterface
0 ignored issues
show
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