summaryrefslogtreecommitdiffstats
path: root/Bugzilla/PatchReader/Base.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/PatchReader/Base.pm')
-rw-r--r--Bugzilla/PatchReader/Base.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/Bugzilla/PatchReader/Base.pm b/Bugzilla/PatchReader/Base.pm
new file mode 100644
index 000000000..f2fd69a68
--- /dev/null
+++ b/Bugzilla/PatchReader/Base.pm
@@ -0,0 +1,23 @@
+package Bugzilla::PatchReader::Base;
+
+use strict;
+
+sub new {
+ my $class = shift;
+ $class = ref($class) || $class;
+ my $this = {};
+ bless $this, $class;
+
+ return $this;
+}
+
+sub sends_data_to {
+ my $this = shift;
+ if (defined($_[0])) {
+ $this->{TARGET} = $_[0];
+ } else {
+ return $this->{TARGET};
+ }
+}
+
+1