public function getTarget(OperationContextInterface $context = null)
    {
        $context = $this->ensureContext($context);
        $targetId = $this->getTargetId();
        if ($targetId === null) {
            return null;
        }

        return $this->getSession()->getObject($targetId, $context);
    }
public function getTarget(OperationContextInterface $context = null)
    {
        $context = $this->ensureContext($context);
        $targetId = $this->getTargetId();
        if ($targetId === null) {
            return null;
        }

        return $this->getSession()->getObject($targetId, $context);
    }
public function getTarget ( OperationContextInterface $ context = null ) { $ context = $ this -> ensureContext ( $ context ) ; $ targetId = $ this -> getTargetId ( ) ; if ( $ targetId === null ) { return null ; } return $ this -> getSession ( ) -> getObject ( $ targetId , $ context ) ; }
Gets the target object using the given OperationContext.

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