From 45fff8bbfd250022e8bc15a65d3228a4a247d925 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Mar 2023 15:27:39 +0100 Subject: [PATCH] Bug 33104: Koha classes Signed-off-by: Jonathan Field --- Koha/Acquisition/Bookseller/Interface.pm | 40 ++++++++++++++++++ Koha/Acquisition/Bookseller/Interfaces.pm | 50 +++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 Koha/Acquisition/Bookseller/Interface.pm create mode 100644 Koha/Acquisition/Bookseller/Interfaces.pm diff --git a/Koha/Acquisition/Bookseller/Interface.pm b/Koha/Acquisition/Bookseller/Interface.pm new file mode 100644 index 0000000000..b038f539e4 --- /dev/null +++ b/Koha/Acquisition/Bookseller/Interface.pm @@ -0,0 +1,40 @@ +package Koha::Acquisition::Bookseller::Interface; + +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; + +use base qw( Koha::Object ); + +=head1 NAME + +Koha::Acquisition::Bookseller::Interface - Koha Bookseller interface Object class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 _type + +=cut + +sub _type { + return 'AqbooksellerInterface'; +} + +1; diff --git a/Koha/Acquisition/Bookseller/Interfaces.pm b/Koha/Acquisition/Bookseller/Interfaces.pm new file mode 100644 index 0000000000..9f8435204e --- /dev/null +++ b/Koha/Acquisition/Bookseller/Interfaces.pm @@ -0,0 +1,50 @@ +package Koha::Acquisition::Bookseller::Interfaces; + +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; + +use base qw( Koha::Objects ); + +use Koha::Acquisition::Bookseller::Interface; + +=head1 NAME + +Koha::Acquisition::Bookseller::Interfaces - Koha Bookseller interface Object class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 _type + +=cut + +sub _type { + return 'AqbooksellerInterface'; +} + +=head3 object_class + +=cut + +sub object_class { + return 'Koha::Acquisition::Bookseller::Interface'; +} + +1; -- 2.30.2