NAME
App::SpamcupNG::Warning::Factory - a factory design pattern to create warnings.
SYNOPSIS
use App::SpamcupNG::Warning::Factory qw(create_warning);
DESCRIPTION
This is a factory to create warnings.
It should be used instead of creating new instances manually.
EXPORTS
Only create_warning
is exported by request.
FUNCTIONS
create_warning
Creates a new instance of App::SpamcupNG::Warning or one of it's subclasses.
Expects as parameters an array reference with the warning message lines.
Returns the instance.
AUTHOR
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
This file is part of App-SpamcupNG distribution.
App-SpamcupNG 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.
App-SpamcupNG 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 App-SpamcupNG. If not, see <http://www.gnu.org/licenses/>.