classdef BasicAccessFcnExpOwnerAccessor < rtw.pil.OwnerAccessor
%BASICACCESSFCNEXPOWNERACCESSOR mocks-up access to the *Owner property 
%of BasicAccessFunctionExpressions
%
%   This is an undocumented class. Its methods and properties are likely to
%   change without warning from one release to the next.

%   Copyright 2020 The MathWorks, Inc.
    
    
    methods(Access = {?rtw.pil.OwnerAccessor})    
        function this = BasicAccessFcnExpOwnerAccessor(implementation)
            this.TargetRegion = implementation;
        end
    end
    
    methods (Access = protected)
        function owner = getOwner_Impl(this)
            if this.TargetRegion.isDefined
                owner = 'NOT_PIL';
            else
                owner = 'PIL';
            end
        end
        
        function setOwner_Impl(~, ~)
            % no op
        end
    end
end
