2014-10-23 11:41:16 +02:00
|
|
|
<?php
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
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();
|
|
|
|
}
|