EnsEMBL/Map/MarkerSynonym.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 3 Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 44 CC 4 SCAR 15.4
CC
4
Cov
0%
dbID
6.0
source
6.0
name
6.0
CRAP 4.7
1 =head1 LICENSE
2  
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5  
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9  
10 http://www.apache.org/licenses/LICENSE-2.0
11  
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17  
18 =cut
19  
20  
21 =head1 CONTACT
22  
23 Please email comments or questions to the public Ensembl
24 developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.
25  
26 Questions may also be sent to the Ensembl help desk at
27 <http://www.ensembl.org/Help/Contact>.
28  
29 =cut
30  
31 =head1 NAME
32  
33 Bio::EnsEMBL::Map::MarkerSynonym
34  
35 =head1 SYNOPSIS
36  
37 =head1 DESCRIPTION
38  
39 Represents an alias for a marker in the EnsEMBL database.
40  
41 =head1 METHODS
42  
43 =cut
44  
45 package Bio::EnsEMBL::Map::MarkerSynonym;
46 $Bio::EnsEMBL::Map::MarkerSynonym::VERSION = '114.0.0_50'; # TRIAL
47 $Bio::EnsEMBL::Map::MarkerSynonym::VERSION = '114.0.050';
48 use strict;
49 use vars qw(@ISA);
50  
51  
52 =head2 new
53  
54 Arg [1] : (optional) int $dbID
55 Arg [2] : (optional) string $source
56 Arg [3] : (optional) string $name
57 Example : $synonym = Bio::EnsEMBL::Map::MarkerSynonym->new(12,$src,$name);
58 Description: Creates a new MarkerSynonym
59 Returntype : Bio::EnsEMBL::Map::MarkerSynonym
60 Exceptions : non
61 Caller : general
62 Status : stable
63  
64 =cut
65  
66 sub new {
67 my ($caller, $dbID, $source, $name) = @_;
68  
69 my $class = ref($caller) || $caller;
70  
71 return bless( {'dbID' => $dbID,
72 'source' => $source,
73 'name' => $name}, $class );
74 }
75  
76  
77 =head2 dbID
78  
79 Arg [1] : (optional) int $dbID
80 Example : $mid = $marker_synonym->dbID;
81 Description: Getter/Setter for the internal id of this synonym
82 Returntype : int
83 Exceptions : none
84 Caller : general
85 Status : stable
86  
87 =cut
88  
89 sub dbID {
90 my $self = shift;
91  
92 if(@_) {
93 $self->{'dbID'} = shift;
94 }
95  
96 return $self->{'dbID'};
97 }
98  
99  
100 =head2 source
101  
102 Arg [1] : (optional) string $source
103 Example : $source = $marker_synonym->source;
104 Description: Getter/Setter for the source of this marker synonym
105 Returntype : string
106 Exceptions : none
107 Caller : general
108 Status : stable
109  
110 =cut
111  
112 sub source {
113 my $self = shift;
114  
115 if(@_) {
116 $self->{'source'} = shift;
117 }
118  
119 return $self->{'source'};
120 }
121  
122  
123 =head2 name
124  
125 Arg [1] : (optional) string $name
126 Example : $name = $marker_synonym->name;
127 Description: Getter/Setter for the name/identifier of this synonym
128 Returntype : string
129 Exceptions : none
130 Caller : general
131 Status : stable
132  
133 =cut
134  
135 sub name {
136 my $self = shift;
137  
138 if(@_) {
139 $self->{'name'} = shift;
140 }
141
142 return $self->{'name'}
143 }
144  
145 1;
146