10 lines
276 B
PHP
10 lines
276 B
PHP
|
<?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();
|
||
|
}
|