Signed-off-by: Roland Häder <roland@mxchange.org>
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
interface Taskable extends FrameworkInterface {
+ /**
+ * Accepts the visitor to process the visitor
+ *
+ * @param $visitorInstance An instance of a Visitor class
+ * @return void
+ */
+ function accept (Visitor $visitorInstance);
+
/**
* Executes the task
*
* @return void
*/
function executeTask ();
+
+ /**
+ * Shuts down the task
+ *
+ * @return void
+ */
+ function doShutdown ();
}
// [EOF]
public function executeTask () {
$this->partialStub('Unimplemented task.');
}
+
+ /**
+ * Shuts down the task
+ *
+ * @return void
+ * @todo 0% done
+ */
+ public function doShutdown () {
+ self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+ }
}
// [EOF]
*/
public function doShutdown () {
// Debug message
- self::createDebugInstance(__CLASS__)->debugOutput('IDLE-TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+ self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
}
}