public function getSource(OperationContextInterface $context = null)
    {
        $sourceId = $this->getSourceId();
        if ($sourceId === null) {
            return null;
        }
        $context = $this->ensureContext($context);

        return $this->getSession()->getObject($sourceId, $context);
    }
public function getSource(OperationContextInterface $context = null)
    {
        $sourceId = $this->getSourceId();
        if ($sourceId === null) {
            return null;
        }
        $context = $this->ensureContext($context);

        return $this->getSession()->getObject($sourceId, $context);
    }
public function getSource ( OperationContextInterface $ context = null ) { $ sourceId = $ this -> getSourceId ( ) ; if ( $ sourceId === null ) { return null ; } $ context = $ this -> ensureContext ( $ context ) ; return $ this -> getSession ( ) -> getObject ( $ sourceId , $ context ) ; }
Gets the source object using the given OperationContext.

@param OperationContextInterface|null $context
@return CmisObjectInterface|null If the source object ID is invalid, <code>null</code> will be returned.
Gets the source object using the given OperationContext .