public function define(string $definitionID, callable $handler): \BearFramework\Tasks
    {
        $this->definitions[$definitionID] = $handler;
        return $this;
    }
public function define(string $definitionID, callable $handler): \BearFramework\Tasks
    {
        $this->definitions[$definitionID] = $handler;
        return $this;
    }
public function define ( string $ definitionID , callable $ handler ) : \ BearFramework \ Tasks { $ this -> definitions [ $ definitionID ] = $ handler ; return $ this ; }
Defines a new task.

@param string $definitionID The ID of the definition.
@param callable $handler The function that will be called when a task of this type is ran.
@return \BearFramework\Tasks Returns an instance to itself.
Defines a new task .