File: Null.pm

package info (click to toggle)
plsense 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,012 kB
  • sloc: perl: 9,767; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package PlSense::Entity::Null;

use parent qw{ PlSense::Entity };
use strict;
use warnings;
use Class::Std::Storable;
use PlSense::Logger;
{
    sub BUILD {
        my ($class, $ident, $arg_ref) = @_;
        $class->set_type("null");
    }

    sub to_string {
        my $self = shift;
        my $ret = "NULL";
        return $ret;
    }

    sub clone {
        my $self = shift;
        return PlSense::Entity::Null->new();
    }
}

1;

__END__