diff --git a/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php b/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php index b4333d4..ed2b570 100644 --- a/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php +++ b/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php @@ -13,7 +13,7 @@ namespace Qandidate\Toggle\ToggleCollection; -use Predis\Client; +use Predis\ClientInterface; use Qandidate\Toggle\Toggle; use Qandidate\Toggle\ToggleCollection; @@ -23,7 +23,7 @@ class PredisCollection extends ToggleCollection { /** - * @var Client + * @var ClientInterface */ private $client; @@ -32,13 +32,13 @@ class PredisCollection extends ToggleCollection */ private $namespace; - public function __construct(string $namespace, Client $client) + public function __construct(string $namespace, ClientInterface $client) { $this->namespace = $namespace; $this->client = $client; } - public function getClient(): Client + public function getClient(): ClientInterface { return $this->client; }