Skip to content

Commit

Permalink
AbstractRepositoryInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Dec 27, 2024
1 parent f07ffa2 commit 6cde2ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Discord/Repository/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @property string $discrim The discriminator.
* @property-read CacheWrapper $cache The react/cache wrapper.
*/
abstract class AbstractRepository extends Collection
abstract class AbstractRepository extends Collection implements AbstractRepositoryInterface
{
/**
* The collection discriminator.
Expand Down
5 changes: 2 additions & 3 deletions src/Discord/Repository/AbstractRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@

namespace Discord\Repository;

use Discord\Helpers\CollectionInterface;
use Discord\Discord;
use Discord\Helpers\Collection;
use Discord\Helpers\CollectionInterface;
use Discord\Parts\Part;
use React\Promise\PromiseInterface;
use Traversable;
Expand All @@ -36,7 +35,7 @@ public function pushItem($item): self;
public function first();
public function last();
public function has(...$keys): bool;
public function filter(callable $callback): Collection;
public function filter(callable $callback);
public function find(callable $callback);
public function clear(): void;
public function toArray(): array;
Expand Down
1 change: 1 addition & 0 deletions src/Discord/Repository/AbstractRepositoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Discord\Factory\Factory;
use Discord\Helpers\CacheWrapper;
use Discord\Helpers\Collection;
use Discord\Helpers\CollectionInterface;
use Discord\Helpers\CollectionTrait;
use Discord\Helpers\LegacyCacheWrapper;
use Discord\Http\Endpoint;
Expand Down

0 comments on commit 6cde2ce

Please sign in to comment.