HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/perl5/SOAP/Lite/Utils.pm
package SOAP::Lite::Utils;
use strict;

our $VERSION = '1.27'; # VERSION

sub import {
    my $caller = caller();
    no strict qw(refs);
    *{ "$caller\::__mk_accessors" } = \&__mk_accessors;
}

sub __mk_accessors {
    my ($class, @method_from) = @_;
    no strict 'refs';
    for my $method ( @method_from ) {
        my $field = '_' . $method;
        *{ "$class\::$method" } = sub {
            my $self = ref $_[0] ? shift : shift->new();
            if (@_) {
                $self->{$field} = shift;
                return $self
            }
            return $self->{$field};
        }
    }
}


1;

__END__