From b6900ee469790cef843798b8f859d53a3f2943dd Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Tue, 17 Nov 2026 12:42:39 +0900 Subject: [PATCH] Point the attribute docblocks to the manual --- src/Annotation/GuzzleConfig.php | 3 +++ src/Annotation/Query.php | 14 ++++++++------ src/Annotation/Sql.php | 9 ++++++++- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/Annotation/GuzzleConfig.php b/src/Annotation/GuzzleConfig.php index 34c29a5..65d91e6 100644 --- a/src/Annotation/GuzzleConfig.php +++ b/src/Annotation/GuzzleConfig.php @@ -4,6 +4,9 @@ namespace Ray\Query\Annotation; +/** + * Qualifies the config array of the Guzzle client that WebQueryModule binds + */ final class GuzzleConfig { } diff --git a/src/Annotation/Query.php b/src/Annotation/Query.php index 8da8fcc..e0c22e2 100644 --- a/src/Annotation/Query.php +++ b/src/Annotation/Query.php @@ -7,18 +7,20 @@ use Attribute; use Ray\Query\Exception\QueryTypeException; +/** + * Runs the query of the ID with the method arguments and returns its result + * (a resource object gets the result as its body, or 404 when the result is empty) + * + * @see \Ray\Query\QueryInterceptor + */ #[Attribute(Attribute::TARGET_METHOD)] final class Query { - /** - * Query ID - * - * @var string - */ + /** @var string */ public $id; /** - * Is ID templated ? + * Whether `id` is a URI template expanded with the method arguments * * @var bool */ diff --git a/src/Annotation/Sql.php b/src/Annotation/Sql.php index 8a2006b..d58fcf6 100644 --- a/src/Annotation/Sql.php +++ b/src/Annotation/Sql.php @@ -6,10 +6,17 @@ use Attribute; +/** + * Injects a query object that runs the SQL file named by `sql` + */ #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] final class Sql { - /** @var string */ + /** + * SQL file name in the SQL directory, without `.sql` + * + * @var string + */ public $sql; /** @psalm-api */