FEATURE: add registering for new search engines.

This commit is contained in:
Michal Kváček
2016-03-14 17:10:14 +01:00
parent a237133227
commit 8a94f1dbab
6 changed files with 154 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Handlers\Contracts;
interface SearchHandler {
public function getId();
public function getName();
/**
* Search for given patttern/term
*
* @param string $term searched word
*
* @return array list of found objects
*/
public function search($term);
}
@@ -0,0 +1,14 @@
<?php
namespace App\Handlers\Contracts;
interface SearchPresenterHandler
{
/**
* Method for rendering list of found results
*
* @param $foundItems
*
* @return mixed
*/
public function render($foundItems);
}