FEATURE: change directory structure
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace App\CMS\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\CMS\Handlers\Contracts;
|
||||
|
||||
interface SearchPresenterHandler
|
||||
{
|
||||
/**
|
||||
* Method for rendering list of found results
|
||||
*
|
||||
* @param $foundItems
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function render($foundItems);
|
||||
}
|
||||
Reference in New Issue
Block a user