From c45e7c8acd88431d0916b8723e3c0e367b45efa1 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Tue, 11 Jun 2024 12:15:26 +0900 Subject: [PATCH] Update interface implementation in providers The providers' RowInterfaceProvider and RowListInterfaceProvider have been updated to implement the QueryInterface instead of RowInterface and RowListInterface respectively. Also, the return type for the get method in RowInterfaceProvider is changed to QueryInterface. --- src/RowInterfaceProvider.php | 4 ++-- src/RowListInterfaceProvider.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RowInterfaceProvider.php b/src/RowInterfaceProvider.php index 11f8ec3..5e56b32 100644 --- a/src/RowInterfaceProvider.php +++ b/src/RowInterfaceProvider.php @@ -12,7 +12,7 @@ use Ray\Query\Exception\SqlFileNotFoundException; use Throwable; -/** @implements ProviderInterface */ +/** @implements ProviderInterface */ final class RowInterfaceProvider implements ProviderInterface { /** @var InjectionPointInterface */ @@ -37,7 +37,7 @@ public function __construct( $this->injector = $injector; } - public function get(): SqlQueryRow + public function get(): QueryInterface { try { $sql = ($this->finder)($this->ip->getParameter()); diff --git a/src/RowListInterfaceProvider.php b/src/RowListInterfaceProvider.php index 53ded0d..11c89f9 100644 --- a/src/RowListInterfaceProvider.php +++ b/src/RowListInterfaceProvider.php @@ -11,7 +11,7 @@ use Ray\Di\ProviderInterface; use Ray\Query\Exception\SqlFileNotFoundException; -/** @implements ProviderInterface */ +/** @implements ProviderInterface */ final class RowListInterfaceProvider implements ProviderInterface { /** @var InjectionPointInterface */