raoul2000\workflow\base\SimpleWorkflowBehavior::sendToStatus PHP Method

sendToStatus() public method

If the transition between the current status and $status can be performed, the status attribute in the owner model is updated with the value of the new status, otherwise it is not changed. This method can be invoked directly but you should keep in mind that it does not handle status persistance.
public sendToStatus ( Status | string $status ) : boolean
$status Status | string the destination status to reach. If NULL, then the owner model is going to leave its current workflow.
return boolean TRUE if the transition could be performed, FALSE otherwise
    public function sendToStatus($status)
    {
        return $this->sendToStatusInternal($status, false);
    }