From 7175627cb6765343abf0dfc111d63c5b1e93bfc6 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 Jun 2020 07:27:35 +0000 Subject: [PATCH] Bug 24151: (QA follow-up) Fix POD warnings from QA tools POD is missing for get_hash POD is missing for new_from_statistic POD is missing for 'object_class' Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- Koha/PseudonymizedTransaction.pm | 11 ++++++++++- Koha/PseudonymizedTransactions.pm | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Koha/PseudonymizedTransaction.pm b/Koha/PseudonymizedTransaction.pm index 269597f3d9..4af91169ad 100644 --- a/Koha/PseudonymizedTransaction.pm +++ b/Koha/PseudonymizedTransaction.pm @@ -33,7 +33,9 @@ Koha::PseudonymizedTransaction - Koha Koha::PseudonymizedTransaction Object clas =head2 Class methods -=head3 new +=head3 new_from_statistic + + Creates new object from a passed Koha::Statistic object =cut @@ -98,6 +100,13 @@ sub new_from_statistic { return $self; } +=head3 get_hash + + Generates a hashed value for $s (e.g. borrowernumber) with Bcrypt. + Needs config entry 'key' in koha-conf. + +=cut + sub get_hash { my ( $class, $s ) = @_; my $key = C4::Context->config('key'); diff --git a/Koha/PseudonymizedTransactions.pm b/Koha/PseudonymizedTransactions.pm index c9e74e7522..06ea08a010 100644 --- a/Koha/PseudonymizedTransactions.pm +++ b/Koha/PseudonymizedTransactions.pm @@ -43,6 +43,10 @@ sub _type { return 'PseudonymizedTransaction'; } +=head3 object_class + +=cut + sub object_class { return 'Koha::PseudonymizedTransaction'; } -- 2.39.5