You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TicketStore.php 523B

3 vuotta sitten
3 vuotta sitten
12345678910111213141516171819202122232425
  1. <?php
  2. namespace Lc\SovBundle\Repository\Ticket;
  3. use Lc\SovBundle\Repository\AbstractStore;
  4. class TicketStore extends AbstractStore implements TicketStoreInterface
  5. {
  6. protected TicketRepositoryQueryInterface $query;
  7. public function __construct(TicketRepositoryQueryInterface $query)
  8. {
  9. $this->query = $query;
  10. }
  11. // getTicketsByUser
  12. public function getByUser($user)
  13. {
  14. $query = $this->query->create();
  15. $query->filterByUser($user);
  16. return $query->find();
  17. }
  18. }