GetDocumentType: Bitrix method

      
<?php 
//  GetDocumentType()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:52

    
public function GetDocumentType()
    {
        
$rootActivity $this->GetRootActivity();
        if (!
is_array($rootActivity->documentType) || count($rootActivity->documentType) <= 0)
        {
            
/** @var CBPDocumentService $documentService */
            
$documentService $this->workflow->GetService("DocumentService");
            
$rootActivity->documentType $documentService->GetDocumentType($rootActivity->documentId);
        }
        return 
$rootActivity->documentType;
    }