raoul2000\workflow\base\SimpleWorkflowBehavior::setStatusInternal PHP Метод

setStatusInternal() приватный Метод

Set the internal status value and the owner model status attribute.
private setStatusInternal ( Status | null $status )
$status Status | null
    private function setStatusInternal($status)
    {
        if ($status !== null && !$status instanceof StatusInterface) {
            throw new WorkflowException('Status instance expected');
        }
        $this->_status = $status;
        $statusId = $status === null ? null : $status->getId();
        if ($this->getStatusConverter() != null) {
            $statusId = $this->_statusConverter->toModelAttribute($statusId);
        }
        $this->owner->{$this->statusAttribute} = $statusId;
    }