classdef FunctionInterfaceOwnerAccessor < rtw.pil.OwnerAccessor
%FUNCTIONINTERFACEOWNERACCESSOR access the FunctionOwner property of
% FunctionInterfaces/SimulinkFunctionInterfaces
%
%   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 = FunctionInterfaceOwnerAccessor(implementation)
            this.TargetRegion = implementation;
        end
    end
    
    methods (Access = protected)
        function owner = getOwner_Impl(this)
            owner = this.TargetRegion.FunctionOwner;
        end
        
        function setOwner_Impl(this, newOwner)
            this.TargetRegion.FunctionOwner = newOwner;
        end
    end
end