Skip to content

Commit

Permalink
fixup! Add query interface
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jan 20, 2024
1 parent 64614c8 commit 5e8f1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Query/TicketQueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

interface TicketQueryInterface
{
#[DbQuery('ticket_item', entity: Ticket::class, type: 'row')]
public function item(string $id): Ticket|null;
#[DbQuery('ticket_item')]
public function item(string $id = '1'): Ticket|null;

/** @return array<Ticket> */
#[DbQuery('ticket_list', entity: Ticket::class)]
#[DbQuery('ticket_list')]
public function list(): array;
}

0 comments on commit 5e8f1f7

Please sign in to comment.