Add 'plugi-core/' from commit '6c478c54d048ab2fd5af4e8e79074153fb594c16'
git-subtree-dir: plugi-core git-subtree-mainline:d4c734cdbdgit-subtree-split:6c478c54d0
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Plugi\Contracts;
|
||||
|
||||
interface MenuRepositoryContract
|
||||
{
|
||||
/**
|
||||
* Replace all menus by the given data.
|
||||
*
|
||||
* @param array $data
|
||||
* @return bool|object|null
|
||||
*/
|
||||
public function updateMenus(array $data);
|
||||
|
||||
/**
|
||||
* Get one hydrated menu with the given name.
|
||||
*
|
||||
* @param string $name
|
||||
* @return object|null
|
||||
*/
|
||||
public function getHydratedMenu(string $name);
|
||||
|
||||
/**
|
||||
* Get all hydrated menus with the given name.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getHydratedMenus();
|
||||
}
|
||||
Reference in New Issue
Block a user