Skip to content

Commit

Permalink
add RecordInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech committed Jul 11, 2024
1 parent 08b8736 commit 6affe04
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/Adapters/InMemory/Models/Contracts/RecordInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts;

interface RecordInterface
{
}
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemoryCountRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;
use DateTimeImmutable;

class InMemoryCountRecord
class InMemoryCountRecord implements RecordInterface
{
/**
* @param string $stat
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemoryDistributionRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;
use DateTimeImmutable;

readonly class InMemoryDistributionRecord
readonly class InMemoryDistributionRecord implements RecordInterface
{
/**
* @param string $stat
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemoryGaugeRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;
use DateTimeImmutable;

readonly class InMemoryGaugeRecord
readonly class InMemoryGaugeRecord implements RecordInterface
{
/**
* @param string $stat
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemoryHistogramRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;
use DateTimeImmutable;

readonly class InMemoryHistogramRecord
readonly class InMemoryHistogramRecord implements RecordInterface
{
/**
* @param string $stat
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemorySetRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;
use DateTimeImmutable;

readonly class InMemorySetRecord
readonly class InMemorySetRecord implements RecordInterface
{
/**
* @param string $stat
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemoryStatsRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Concerns\GetAndSetRecordsTrait;
use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;

/**
* Container class for storing all stats.
*/
class InMemoryStatsRecord
class InMemoryStatsRecord implements RecordInterface
{
use GetAndSetRecordsTrait;

Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/InMemory/Models/InMemoryTimingRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models;

use Cosmastech\StatsDClientAdapter\Adapters\InMemory\Models\Contracts\RecordInterface;
use DateTimeImmutable;

readonly class InMemoryTimingRecord
readonly class InMemoryTimingRecord implements RecordInterface
{
/**
* @param string $stat
Expand Down

0 comments on commit 6affe04

Please sign in to comment.