mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
50 lines
1016 B
PHP
50 lines
1016 B
PHP
<?php
|
|
|
|
namespace Xentral\Modules\SystemHealth\Service;
|
|
|
|
interface SystemHealthServiceInterface
|
|
{
|
|
|
|
|
|
/**
|
|
* Create a SystemHealth
|
|
*
|
|
* @param int $systemHealthCategoryId
|
|
* @param string $name
|
|
* @param string $description
|
|
*
|
|
* @return int Created SystemHealth-ID
|
|
*/
|
|
public function create($systemHealthCategoryId, $name, $description = '');
|
|
|
|
/**
|
|
* Create a SystemHealth Category
|
|
*
|
|
* @param string $name
|
|
* @param string $description
|
|
*
|
|
* @return int Created SystemHealthCategory-ID
|
|
*/
|
|
public function createCategory($name, $description = '');
|
|
|
|
|
|
/**
|
|
* Delete SystemHealth by ID
|
|
*
|
|
* @param int $systemHealthId
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function delete($systemHealthId);
|
|
|
|
/**
|
|
* Delete SystemHealthCategory by ID
|
|
*
|
|
* @param int $systemHealthCategoryId
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function deleteCategory($systemHealthCategoryId);
|
|
|
|
}
|