2014-10-23 05:41:16 -04:00
|
|
|
<?php
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
2014-11-10 10:31:40 -05:00
|
|
|
namespace Icinga\Module\Setup;
|
2014-10-23 05:41:16 -04:00
|
|
|
|
|
|
|
|
/**
|
2014-11-10 04:30:52 -05:00
|
|
|
* Class to implement functionality for a single setup step
|
2014-10-23 05:41:16 -04:00
|
|
|
*/
|
|
|
|
|
abstract class Step
|
|
|
|
|
{
|
|
|
|
|
/**
|
2014-11-10 04:30:52 -05:00
|
|
|
* Apply this step's configuration changes
|
2014-10-23 05:41:16 -04:00
|
|
|
*
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
abstract public function apply();
|
|
|
|
|
|
|
|
|
|
/**
|
2014-11-10 04:30:52 -05:00
|
|
|
* Return a HTML representation of this step's configuration changes supposed to be made
|
2014-10-23 05:41:16 -04:00
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
abstract public function getSummary();
|
|
|
|
|
|
|
|
|
|
/**
|
2014-11-10 04:30:52 -05:00
|
|
|
* Return a HTML representation of this step's configuration changes that were made
|
2014-10-23 05:41:16 -04:00
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
abstract public function getReport();
|
|
|
|
|
}
|