Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Annotation/GuzzleConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

namespace Ray\Query\Annotation;

/**
* Qualifies the config array of the Guzzle client that WebQueryModule binds
*/
final class GuzzleConfig
{
}
14 changes: 8 additions & 6 deletions src/Annotation/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
*/
#[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
*/
Expand Down
9 changes: 8 additions & 1 deletion src/Annotation/Sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Loading