bearsunday /
BEAR.Resource
| 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
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 |