12345678910111213141516171819202122232425262728293031323334353637383940 |
- package Logos::Ivar;
- use strict;
- sub new {
- my $proto = shift;
- my $class = ref($proto) || $proto;
- my $self = {};
- $self->{NAME} = shift;
- $self->{TYPE} = shift;
- $self->{CLASS} = undef;
- bless($self, $class);
- return $self;
- }
- ##################### #
- # Setters and Getters #
- # #####################
- sub name {
- my $self = shift;
- if(@_) { $self->{NAME} = shift; }
- return $self->{NAME};
- }
- sub type {
- my $self = shift;
- if(@_) { $self->{TYPE} = shift; }
- return $self->{TYPE};
- }
- sub class {
- my $self = shift;
- if(@_) { $self->{CLASS} = shift; }
- return $self->{CLASS};
- }
- ##### #
- # END #
- # #####
- 1;
|