Skip to content

Commit

Permalink
fix abstract classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 23, 2024
1 parent 7f87cc5 commit 6de05c6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 30 deletions.
6 changes: 1 addition & 5 deletions src/Consumer/AckPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use DomainException;

final class AckPolicy
abstract class AckPolicy
{
public const ALL = 'all';
public const EXPLICIT = 'explicit';
Expand All @@ -25,8 +25,4 @@ public static function isValid(string $policy): bool
{
return in_array($policy, [self::EXPLICIT, self::NONE, self::ALL]);
}

private function __construct()
{
}
}
6 changes: 1 addition & 5 deletions src/Consumer/DeliverPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use DomainException;

final class DeliverPolicy
abstract class DeliverPolicy
{
public const ALL = 'all';
public const BY_START_SEQUENCE = 'by_start_sequence';
Expand Down Expand Up @@ -35,8 +35,4 @@ public static function isValid(string $policy): bool
self::NEW,
]);
}

private function __construct()
{
}
}
6 changes: 1 addition & 5 deletions src/Consumer/ReplayPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use DomainException;

final class ReplayPolicy
abstract class ReplayPolicy
{
public const INSTANT = 'instant';
public const ORIGINAL = 'original';
Expand All @@ -24,8 +24,4 @@ public static function isValid(string $policy): bool
{
return in_array($policy, [self::INSTANT, self::ORIGINAL]);
}

private function __construct()
{
}
}
6 changes: 1 addition & 5 deletions src/Stream/DiscardPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use DomainException;

final class DiscardPolicy
abstract class DiscardPolicy
{
public const OLD = 'old';
public const NEW = 'new';
Expand All @@ -24,8 +24,4 @@ public static function isValid(string $policy): bool
{
return in_array($policy, [self::OLD, self::NEW]);
}

private function __construct()
{
}
}
6 changes: 1 addition & 5 deletions src/Stream/RetentionPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use DomainException;

final class RetentionPolicy
abstract class RetentionPolicy
{
public const INTEREST = 'interest';
public const LIMITS = 'limits';
Expand All @@ -25,8 +25,4 @@ public static function isValid(string $policy): bool
{
return in_array($policy, [self::LIMITS, self::INTEREST, self::WORK_QUEUE]);
}

private function __construct()
{
}
}
6 changes: 1 addition & 5 deletions src/Stream/StorageBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use DomainException;

final class StorageBackend
abstract class StorageBackend
{
public const FILE = 'file';
public const MEMORY = 'memory';
Expand All @@ -24,8 +24,4 @@ public static function isValid(string $storage): bool
{
return in_array($storage, [self::FILE, self::MEMORY]);
}

private function __construct()
{
}
}

0 comments on commit 6de05c6

Please sign in to comment.