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.

23 lines
493B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\User;
  3. use Lc\SovBundle\Repository\AbstractStore;
  4. class VisitorStore extends AbstractStore
  5. {
  6. protected VisitorRepositoryQuery $query;
  7. public function __construct(VisitorRepositoryQuery $query)
  8. {
  9. $this->query = $query;
  10. }
  11. public function getOneByCookie(string $cookie, $query = null)
  12. {
  13. $query = $this->createQuery($query);
  14. $query->filterByCookie($cookie);
  15. return $query->findOne();
  16. }
  17. }