File tree 8 files changed +21
-7
lines changed
src/Adapters/InMemory/Models
8 files changed +21
-7
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts ;
4
+
5
+ interface RecordInterface
6
+ {
7
+ }
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
5
6
use DateTimeImmutable ;
6
7
7
- class InMemoryCountRecord
8
+ class InMemoryCountRecord implements RecordInterface
8
9
{
9
10
/**
10
11
* @param string $stat
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
5
6
use DateTimeImmutable ;
6
7
7
- readonly class InMemoryDistributionRecord
8
+ readonly class InMemoryDistributionRecord implements RecordInterface
8
9
{
9
10
/**
10
11
* @param string $stat
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
5
6
use DateTimeImmutable ;
6
7
7
- readonly class InMemoryGaugeRecord
8
+ readonly class InMemoryGaugeRecord implements RecordInterface
8
9
{
9
10
/**
10
11
* @param string $stat
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
5
6
use DateTimeImmutable ;
6
7
7
- readonly class InMemoryHistogramRecord
8
+ readonly class InMemoryHistogramRecord implements RecordInterface
8
9
{
9
10
/**
10
11
* @param string $stat
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
5
6
use DateTimeImmutable ;
6
7
7
- readonly class InMemorySetRecord
8
+ readonly class InMemorySetRecord implements RecordInterface
8
9
{
9
10
/**
10
11
* @param string $stat
Original file line number Diff line number Diff line change 3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
5
use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Concerns \GetAndSetRecordsTrait ;
6
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
6
7
7
8
/**
8
9
* Container class for storing all stats.
9
10
*/
10
- class InMemoryStatsRecord
11
+ class InMemoryStatsRecord implements RecordInterface
11
12
{
12
13
use GetAndSetRecordsTrait;
13
14
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models ;
4
4
5
+ use Cosmastech \StatsDClientAdapter \Adapters \InMemory \Models \Contracts \RecordInterface ;
5
6
use DateTimeImmutable ;
6
7
7
- readonly class InMemoryTimingRecord
8
+ readonly class InMemoryTimingRecord implements RecordInterface
8
9
{
9
10
/**
10
11
* @param string $stat
You can’t perform that action at this time.
0 commit comments