Koha::Result::Boolean - Booleans, with extra Koha
my $bool = Koha::Result::Boolean->new( $value );
Constructor method to generate a Koha::Result::Boolean object. value is a boolean expression.
$bool->set_value(1); $bool->set_value(0);
Set the boolean value for the object.
my @messages = @{ $bool->messages };
Returns the Koha::Object::Message objects that were recorded.
$bool->add_message( { message => $message, [ type => 'error', payload => $payload ] } );
Adds a message.
Internal method that exposes the boolean value of the object as a scalar.
Internal method implementing equality comparison in scalar context.
Tomas Cohen Arazi, <tomascohen@theke.io>