pohja/lib/Task.php

10 lines
276 B
PHP
Raw Normal View History

2024-02-03 14:08:03 +01:00
<?php
abstract class Task {
public function run() {
Logger::log("Running task " . get_class($this), Logger::DEBUG, "Task");
$this->execute();
Logger::log("Finished task " . get_class($this), Logger::DEBUG, "Task");
}
abstract protected function execute();
}