Altax\Command\ClosureTaskCommand::__construct PHP Method

__construct() public method

public __construct ( $definedTask )
    public function __construct($definedTask)
    {
        if (!$definedTask->hasClosure()) {
            throw new \RuntimeException("The task don't have a closure");
        }
        parent::__construct($definedTask);
    }