Skip to content

Commit

Permalink
Make Reader and Query implement interfaces so that their mocking …
Browse files Browse the repository at this point in the history
…is easier, fixes #201
  • Loading branch information
DamienHarper committed Jan 10, 2025
1 parent 490ffe8 commit 7feab9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Provider/Doctrine/Persistence/Reader/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* @see QueryTest
*/
final class Query
final class Query implements QueryInterface
{
/**
* @var string
Expand Down
5 changes: 5 additions & 0 deletions src/Provider/Doctrine/Persistence/Reader/QueryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace DH\Auditor\Provider\Doctrine\Persistence\Reader;

interface QueryInterface {}
2 changes: 1 addition & 1 deletion src/Provider/Doctrine/Persistence/Reader/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* @see ReaderTest
*/
final readonly class Reader
final readonly class Reader implements ReaderInterface
{
/**
* @var int
Expand Down
5 changes: 5 additions & 0 deletions src/Provider/Doctrine/Persistence/Reader/ReaderInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace DH\Auditor\Provider\Doctrine\Persistence\Reader;

interface ReaderInterface {}

0 comments on commit 7feab9d

Please sign in to comment.