Skip to content

Commit

Permalink
Change TimeBucketImplementationInterface to TimeOrderedStorageInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Apr 22, 2021
1 parent df20c8a commit 7c99710
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TimeOrderedArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* For large number of items this implementation uses 10% of memory as SplPriorityQueue and is ~ 50% faster
*/
class TimeOrderedArray implements Iterator, Countable, TimeBucketImplementationInterface {
class TimeOrderedArray implements Iterator, Countable, TimeOrderedStorageInterface {

/**
* Queue elements (keyed by priority)
Expand Down
2 changes: 1 addition & 1 deletion src/TimeOrderedQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use SplPriorityQueue;

class TimeOrderedQueue extends SplPriorityQueue implements TimeBucketImplementationInterface {
class TimeOrderedQueue extends SplPriorityQueue implements TimeOrderedStorageInterface {
/**
* @var int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace EdgeTelemetrics\TimeBucket;

interface TimeBucketImplementationInterface {
interface TimeOrderedStorageInterface {
public function insert($value, $priority);
public function count();
public function current();
Expand Down

0 comments on commit 7c99710

Please sign in to comment.