From affc50a2ebf15051d27f4052e21fa44e7f6bb0fa Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Tue, 10 Jul 2012 20:41:27 +0100 Subject: [PATCH] Added type hint to Repository constructor --- Repository.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Repository.php b/Repository.php index 3e702be..75e30cd 100644 --- a/Repository.php +++ b/Repository.php @@ -2,6 +2,8 @@ namespace FOQ\ElasticaBundle; +use FOQ\ElasticaBundle\Finder\PaginatedFinderInterface; + /** * @author Richard Miller * @@ -12,7 +14,7 @@ class Repository { protected $finder; - public function __construct($finder) + public function __construct(PaginatedFinderInterface $finder) { $this->finder = $finder; }