Romani/Query/SQL/TTT/Keyword.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 29 CC 2 SCAR 12.0
CC
2
Cov
0%
new
6.0
get_keyword
2.0
visit
2.0
CRAP 3.3
1  
2 package DBIx::Romani::Query::SQL::TTT::Keyword;
3  
4 use strict;
5  
6 sub new
7 {
8 my $class = shift;
9 my $args = shift;
10  
11 my $keyword;
12  
13 if ( ref($args) eq 'HASH' )
14 {
15 $keyword = $args->{keyword};
16 }
17 else
18 {
19 $keyword = $args;
20 }
21  
22 my $self = {
23 keyword => $keyword,
24 };
25  
26 bless $self, $class;
27 return $self;
28 }
29  
30 sub get_keyword { return shift->{keyword}; }
31  
32 sub visit
33 {
34 my ($self, $visitor) = (shift, shift);
35 return $visitor->visit_ttt_keyword( $self, @_ );
36 }
37  
38 sub clone
39 {
40 my $self = shift;
41  
42 return DBIx::Romani::Query::SQL::TTT::Keyword->new({ keyword => $self->get_keyword() });
43 }
44  
45 1;
46