public function getRenditionDocument(OperationContextInterface $context = null)
    {
        $renditionDocumentId = $this->getRenditionDocumentId();
        if (empty($renditionDocumentId)) {
            return null;
        }

        if ($context === null) {
            $context = $this->session->getDefaultContext();
        }

        $document = $this->session->getObject($this->session->createObjectId($renditionDocumentId), $context);

        return $document instanceof DocumentInterface ? $document : null;
    }
public function getRenditionDocument(OperationContextInterface $context = null)
    {
        $renditionDocumentId = $this->getRenditionDocumentId();
        if (empty($renditionDocumentId)) {
            return null;
        }

        if ($context === null) {
            $context = $this->session->getDefaultContext();
        }

        $document = $this->session->getObject($this->session->createObjectId($renditionDocumentId), $context);

        return $document instanceof DocumentInterface ? $document : null;
    }
public function getRenditionDocument ( OperationContextInterface $ context = null ) { $ renditionDocumentId = $ this -> getRenditionDocumentId ( ) ; if ( empty ( $ renditionDocumentId ) ) { return null ; } if ( $ context === null ) { $ context = $ this -> session -> getDefaultContext ( ) ; } $ document = $ this -> session -> getObject ( $ this -> session -> createObjectId ( $ renditionDocumentId ) , $ context ) ; return $ document instanceof DocumentInterface ? $ document : null ; }
Returns the rendition document using the provides OperationContext if the rendition is a stand-alone document.

@param OperationContextInterface|null $context
@return DocumentInterface|null the rendition document or <code>null</code> if there is no rendition document
Returns the rendition document using the provides OperationContext if the rendition is a stand - alone document .