2014-10-23 11:41:16 +02:00
|
|
|
<?php
|
2015-02-03 16:27:59 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | http://www.gnu.org/licenses/gpl-2.0.txt */
|
2014-10-23 11:41:16 +02:00
|
|
|
|
2014-11-10 16:31:40 +01:00
|
|
|
namespace Icinga\Module\Setup;
|
2014-10-23 11:41:16 +02:00
|
|
|
|
|
|
|
/**
|
2014-11-10 10:30:52 +01:00
|
|
|
* Class to implement functionality for a single setup step
|
2014-10-23 11:41:16 +02:00
|
|
|
*/
|
|
|
|
abstract class Step
|
|
|
|
{
|
|
|
|
/**
|
2014-11-10 10:30:52 +01:00
|
|
|
* Apply this step's configuration changes
|
2014-10-23 11:41:16 +02:00
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
abstract public function apply();
|
|
|
|
|
|
|
|
/**
|
2014-11-10 10:30:52 +01:00
|
|
|
* Return a HTML representation of this step's configuration changes supposed to be made
|
2014-10-23 11:41:16 +02:00
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
abstract public function getSummary();
|
|
|
|
|
|
|
|
/**
|
2014-11-10 10:30:52 +01:00
|
|
|
* Return a HTML representation of this step's configuration changes that were made
|
2014-10-23 11:41:16 +02:00
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
abstract public function getReport();
|
|
|
|
}
|