X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fhandler%2Ftask%2Fclass_HandleableTask.php;h=3e9934e69afd9a610a5be8aed139fc79539c213f;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=0bdc518bf3ced72f6af3855f83c00ff58919e198;hpb=78a010fef84895720e796842208f01dfb619c332;p=core.git diff --git a/framework/main/interfaces/handler/task/class_HandleableTask.php b/framework/main/interfaces/handler/task/class_HandleableTask.php index 0bdc518b..3e9934e6 100644 --- a/framework/main/interfaces/handler/task/class_HandleableTask.php +++ b/framework/main/interfaces/handler/task/class_HandleableTask.php @@ -1,13 +1,18 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @todo HandleableDataSet looks strange here @@ -38,10 +43,10 @@ interface HandleableTask extends HandleableDataSet { * Registers a task with a task handler. * * @param $taskName A task name to register the task on - * @param $taskInstance The instance we should register as a task + * @param $taskInstance An instance of a Taskable class * @return void */ - function registerTask ($taskName, Visitable $taskInstance); + function registerTask (string $taskName, Taskable $taskInstance); /** * Checks whether tasks are left including idle task