Added type hint to Repository constructor

This commit is contained in:
Richard Miller 2012-07-10 20:41:27 +01:00
commit affc50a2eb

View file

@ -2,6 +2,8 @@
namespace FOQ\ElasticaBundle;
use FOQ\ElasticaBundle\Finder\PaginatedFinderInterface;
/**
* @author Richard Miller <info@limethinking.co.uk>
*
@ -12,7 +14,7 @@ class Repository
{
protected $finder;
public function __construct($finder)
public function __construct(PaginatedFinderInterface $finder)
{
$this->finder = $finder;
}