line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package NetApp::Filer::License; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '500.002'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; ## no critic: StringyEval |
6
|
|
|
|
|
|
|
|
7
|
7
|
|
|
7
|
|
35
|
use strict; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
243
|
|
8
|
7
|
|
|
7
|
|
36
|
use warnings; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
192
|
|
9
|
|
|
|
|
|
|
|
10
|
7
|
|
|
7
|
|
35
|
use Class::Std; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
41
|
|
11
|
7
|
|
|
7
|
|
795
|
use Params::Validate qw( :all ); |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
2829
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
{ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my %service_of :ATTR( get => 'service' ); |
16
|
|
|
|
|
|
|
my %type_of :ATTR( get => 'type' ); |
17
|
|
|
|
|
|
|
my %code_of :ATTR( get => 'code' ); |
18
|
|
|
|
|
|
|
my %expired_of :ATTR( get => 'expired' ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub BUILD { |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
my ($self,$ident,$args_ref) = @_; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my @args = %$args_ref; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
my (%args) = validate( @args, { |
27
|
|
|
|
|
|
|
service => { type => SCALAR }, |
28
|
|
|
|
|
|
|
type => { type => SCALAR }, |
29
|
|
|
|
|
|
|
code => { type => SCALAR }, |
30
|
|
|
|
|
|
|
expired => { type => SCALAR }, |
31
|
|
|
|
|
|
|
}); |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
$service_of{$ident} = $args{service}; |
34
|
0
|
|
|
|
|
|
$type_of{$ident} = $args{type}; |
35
|
0
|
|
|
|
|
|
$code_of{$ident} = $args{code}; |
36
|
0
|
|
|
|
|
|
$expired_of{$ident} = $args{expired}; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |