Andre\SurvivalGames\CallbackTask::__construct PHP Method

__construct() public method

public __construct ( callable $callable, array $args = [] )
$callable callable
$args array
    public function __construct(callable $callable, array $args = [])
    {
        $this->callable = $callable;
        $this->args = $args;
        $this->args[] = $this;
    }